Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hey Power BI Wizard,
I have met the total error in my power bi, and I scratched out my head still couldnt solve it. For context: I have a forecast and actual sales dataset for my power bi, and I wish to dynamically calculated the leftover target to achieve in power bi pivot table.
Here is my dax:
Solved! Go to Solution.
Hi @TanHY
The most likely cuplrit is you conditional formula after RETURN. MAX ('Date'[Date]) is evaluated differently at each hierarchy level. Try in a new measure:
SUMX (
SUMMARIZECOLUMNS (
'table'[Category],
'table'[Subcategory],
"@Development", [Development ]
),
[@Development]
)
Change category and subcategory to the actual row columns in your matrix.
Hi @TanHY
The most likely cuplrit is you conditional formula after RETURN. MAX ('Date'[Date]) is evaluated differently at each hierarchy level. Try in a new measure:
SUMX (
SUMMARIZECOLUMNS (
'table'[Category],
'table'[Subcategory],
"@Development", [Development ]
),
[@Development]
)
Change category and subcategory to the actual row columns in your matrix.
Hi,
Thanks. its work!!
Please accept my post as the solution. Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 35 | |
| 35 | |
| 28 |
| User | Count |
|---|---|
| 134 | |
| 101 | |
| 71 | |
| 67 | |
| 65 |