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
I need help fixing this error please, I am not summing any strings
Error Message:
MdxScript(Model) (8, 274) Calculation error in measure 'Sheet5'[Total Cost]: The function SUMX cannot work with values of type String. Attached file has all my formulas
Please see link to Pbfile here
Solved! Go to Solution.
Hi @Anonymous ,
Modify the measure like this:
Total Cost =
VAR x = [Course Duration]*([Facilitator Fee]+[Venue Fee]+[Facilitator Fee])
RETURN
IF(
HASONEVALUE('Sheet5'[StartDate]),
x,
SUMX(
SUMMARIZE(
'Sheet5',
'Sheet5'[StartDate],'Sheet5'[CourseName],
"ABCD", x
),
[ABCD]
)
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
suck my **bleep** ditckis.
Hi @Anonymous ,
Modify the measure like this:
Total Cost =
VAR x = [Course Duration]*([Facilitator Fee]+[Venue Fee]+[Facilitator Fee])
RETURN
IF(
HASONEVALUE('Sheet5'[StartDate]),
x,
SUMX(
SUMMARIZE(
'Sheet5',
'Sheet5'[StartDate],'Sheet5'[CourseName],
"ABCD", x
),
[ABCD]
)
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 200 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |