What Should You Put Where the Table Belongs in the New Visual Calculations? – A Complete Understanding of the ROWS() Function
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...