Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I am trying to make a sale price variance analysis. But I want also to separate all those product that have been abandonned or that they are new. So I generate three effets
Price variance
Sales variance
Non comparable effet
Here is my matrix.
My problem the three last columns are measures
Thank you very much for you explanation.
I know where the problem is, I already have tried X fonction, but I cannot reach my target.
I am quite new with dax...
Why not trying to make your calculation with columns instead of measure ?
I don't see how to use columns in this case.
In the end what I am doing is a pivot table in order to match the same product in different period (so in different row).
As far as I know, calculated columns make calculations in the row, but I would need the cell to lokk for one value in another row.
But if I am wrong I would be delighted if you could explain me 🙂
Hi,
Keep in mind that the total of your table is not the sum of above value but the calculation without the filters coming from the content of your visual . In your case it means that Produit 1, Produit 2... are filters which help your calculation to use the price and quantity of each product.
But it is not the case for the total... this explaining why you cannot get a correct calculation...
To get it you'll need to use a function iterating (row by row) your table.
All X functions (SUMX, AVERAGEX...) will create this iteration you need, but likewise function FILTER, ADDCOLUMNS.
If you want to list all iterative functions, use DAX GUIDE and filter on Iterator (using second drop down menu).
Another way of using iteration is creating a calculated column instead of a Measure, since columns are iterating by default.
Hope this help
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 44 |