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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello all,
I would like to count the number of cases for today and if there is an empty value, write zero.
I have already created these measures, but how to connect them together and create one measure?
Solved! Go to Solution.
OK, now it works. Only a few parentheses needed to be added.
MyMeasure =
var Count_today = CALCULATE (DISTINCTCOUNT ( 'case'[id_case] ), 'case'[date] = TODAY ())
return
IF(
ISBLANK(Count_today),0,(Count_today)
)
Thank you ๐
Hi @Michael92 ,
I don't think you need the second measure if I understand correctly.
Try following:
MyMeasure =
var Count_today = CALCULATE (DISTINCTCOUNT ( 'case'[id_case] ), 'case'[date] = TODAY ())
return
IF(
ISBLANK(Count_today,0,Count_today)
)
The syntax for 'returnif' is incorrect ๐
Too many arguments were passed to the ISBLANK function. The maximum argument count for the function is 1.
OK, now it works. Only a few parentheses needed to be added.
MyMeasure =
var Count_today = CALCULATE (DISTINCTCOUNT ( 'case'[id_case] ), 'case'[date] = TODAY ())
return
IF(
ISBLANK(Count_today),0,(Count_today)
)
Thank you ๐
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!