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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 Power BI 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!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 24 | |
| 18 | |
| 16 | |
| 15 | |
| 9 |