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
Hi, I have the following logic which totals each row correctly, but the grand total is way out, and I have no idea why. Any idea why this could be, please?
Value =
if(apps[spend] <=300000, apps[spend] * apps[300_int_pc],
if(apps[spend] >300000 && apps[spend] <=400000, apps[spend] * apps[400_int_pc],
if(apps[spend] >400000 && apps[spend] <=500000, apps[spend] * apps[500_int_pc],
if(apps[spend] >500000, apps[spend] * apps[500over_int_pc],0))))
Solved! Go to Solution.
Hi, @M_SBS_6 ;
Are [300_int_pc],[400_int_pc],[500_int_pc],500over_int_pc], measure? I tested this funtion by a simple example.and when this dax apply into my column. the total is right.
The final show:
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @M_SBS_6 ;
Are [300_int_pc],[400_int_pc],[500_int_pc],500over_int_pc], measure? I tested this funtion by a simple example.and when this dax apply into my column. the total is right.
The final show:
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@M_SBS_6 , Push ar row level
Sumx(apps ,
if(apps[spend] <=300000, apps[spend] * apps[300_int_pc],
if(apps[spend] >300000 && apps[spend] <=400000, apps[spend] * apps[400_int_pc],
if(apps[spend] >400000 && apps[spend] <=500000, apps[spend] * apps[500_int_pc],
if(apps[spend] >500000, apps[spend] * apps[500over_int_pc],0)))) )
or you have uses values, Summarize to group it
refer https://www.youtube.com/watch?v=ufHOOLdi_jk
Thanks for your suggestion, but unfortunately, I still get the incorrect total amount.
I have watched the video in the link that you sent, still not completely clear as I'm so new to Power BI.
Do I essentially need to include HASONEFILTER somewhere into this logic?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |