Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hello experts,
May I ask how to fix total in this table ?
Values here I used measure:
Solved! Go to Solution.
Hi @Anonymous
Thanks Chew_WenJie for your positive response and great answer.
Agree with Chew_WenJie. The SUMX function iterates through each unique value in the 'Primary Resources TMR' column and applies IF logic to each value and then sums the results. This ensures that in the context of totaling rows and columns, the measure correctly calculates the value for each cell and summarizes it.
Modify your measure [_0_Visits2_Planned] as follows:
_0_Visits2_Planned =
SUMX(
VALUES(VW_FACT_VISIT[Primary Resources TMR]),
IF(
ISBLANK(VW_FACT_VISIT[_Planned2_TotalVisits]) || VW_FACT_VISIT[_Planned2_TotalVisits] = 0,
1,
0
)
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks Chew_WenJie for your positive response and great answer.
Agree with Chew_WenJie. The SUMX function iterates through each unique value in the 'Primary Resources TMR' column and applies IF logic to each value and then sums the results. This ensures that in the context of totaling rows and columns, the measure correctly calculates the value for each cell and summarizes it.
Modify your measure [_0_Visits2_Planned] as follows:
_0_Visits2_Planned =
SUMX(
VALUES(VW_FACT_VISIT[Primary Resources TMR]),
IF(
ISBLANK(VW_FACT_VISIT[_Planned2_TotalVisits]) || VW_FACT_VISIT[_Planned2_TotalVisits] = 0,
1,
0
)
)
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The total is incorrect because you are using the IFELSE measure. Try creating another measure that references the existing DAX measure. For example:
This approach ensures the calculation correctly aggregates the values across all rows.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 42 | |
| 30 | |
| 24 |