Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I create new measure but It's don't show data as below
My measure :
Solved! Go to Solution.
Hi @Anonymous ,
This error occurs because the data types around the "=" are different and cannot be compared. For example, in my example, the left side of the equal sign is the date type, and the right side of the equal sign is the text type.
Try to force the data type of the'Before'[Date] column to be changed to a date type and use the following formula.
count =
VAR __CurrentMeasure =
CALCULATE (
COUNT ( 'Before'[Date]),
FILTER (
'Before',
YEAR('Before'[Date]) = 2021 && MONTH('Before'[Date]) = 1 && 'Before'[Status(2021)] = "live"
)
)
RETURN
IF (
ISBLANK ( __CurrentMeasure ),
0, __CurrentMeasure
)
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.
Hi @Anonymous ,
This error occurs because the data types around the "=" are different and cannot be compared. For example, in my example, the left side of the equal sign is the date type, and the right side of the equal sign is the text type.
Try to force the data type of the'Before'[Date] column to be changed to a date type and use the following formula.
count =
VAR __CurrentMeasure =
CALCULATE (
COUNT ( 'Before'[Date]),
FILTER (
'Before',
YEAR('Before'[Date]) = 2021 && MONTH('Before'[Date]) = 1 && 'Before'[Status(2021)] = "live"
)
)
RETURN
IF (
ISBLANK ( __CurrentMeasure ),
0, __CurrentMeasure
)
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.
@Anonymous
I think one of your closing parenthesis (right before = "live") is in the wrong place. Try the following:
@Anonymous , Is data type is date not need use datevalue
Try like
count = VAR __CurrentMeasure =
CALCULATE (
COUNT ( 'Before'[Date]),
FILTER ('Before',
YEAR('Before'[Date]) = 2021 && MONTH('Before'[Date]) = 1 && 'Before'[Status(2021)] = "live"
)
)
RETURN
IF ( ISBLANK ( __CurrentMeasure ), 0, __CurrentMeasure )
@Anonymous
Can you send a snapshot of the formula with the error as well?
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.