Posts

Showing posts with the label Power BI - Visual Calculation

What Should You Put Where the Table Belongs in the New Visual Calculations? – A Complete Understanding of the ROWS() Function

Image
When you first start using the new Visual Calculations feature in Power BI, you will surprisingly run into a bottleneck at the very beginning. This occurs precisely when attempting to deploy iterator functions such as SUMX, AVERAGEX, MAXX, and FILTER. Code that we used to take completely for granted in standard DAX suddenly stops working. SUMX(   Sales,   Sales[Qty] * Sales[Price] ) In a traditional measure, you simply needed to place the Sales table into the first argument. In a Visual Calculation, however, the exact moment you input a table name, an error is triggered. Initially, I assumed I was simply mistaken about the syntax. However, after days of testing various scenarios, I realized something fundamental: Visual Calculations operate on an entirely different paradigm from trad...

Why did new Visual Calculations appear in Power BI?

Image
Visual Calculations in Power BI is a feature that officially rolled out in February 2024. Its main purpose is to let you perform calculations directly within a visual (like a chart or a table) without having to write complex DAX (Data Analysis Expressions). Essentially, it lets you apply calculations immediately on the report canvas without the need to create a measure in the model layer first.   1.  Background: Why It Emerged Power BI users were repeatedly running into the following roadblocks:                     The Steep DAX Learning Curve While DAX is powerful, its syntax is difficult. Advanced functions, especially those like CALCULATE , FILTER, or SAMEPERIODLASTYEAR, were particularly challenging for beginners to approach. Even for simple tasks like finding a "growth rate" or a "running total," users had to write long, complicated expressions.   Model Registration Require...