Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm working on a new measure for current year spending. I received the following error:
This formula is invalid or incomplete: 'Calculation error in measure 'Spending'[CY Spending]: The function SUM takes an argument that evaluates to numbers or dates and cannot work with values of type String.'.
Measure name: CY Spending
Formula:
=
VAR CY = MAX('Calendar'[Year])
RETURN
CALCULATE(SUM([Spending]),'Calendar'[Year]=CY)
please help me.
Solved! Go to Solution.
Hi @prathamesh0112
According to the error message your column's "spending" data type is a string.
Modify it to a number and the formula should work.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @prathamesh0112
According to the error message your column's "spending" data type is a string.
Modify it to a number and the formula should work.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
97 | |
80 | |
67 | |
63 |
User | Count |
---|---|
147 | |
110 | |
108 | |
85 | |
64 |