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
Hi All,
I need some help in Power BI.
I would like to build a card view (with Multi-Row Card Visual) where I would like to show the count of true and false values. The problem with it, that right now all of the data is "True" , but in the future maybe it's going to be "False" so I would like to write in cards, that:
True: 12 342
False: 0
But now I only see this:
True 12 342
because there is no false value, so it doesn't appear.
Is there any way to show the 0 values as well?
Thanks,
Dexter
Solved! Go to Solution.
Add +0 to your measure. If whatever you're feeding in isn't currently a measure, make it a measure
Hi, @dexter2424
Based on your description, I created data to reproduce your scenario.
Table:
You may create two measures as below.
True =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[ID],
'Table'[Value],
"Flag",
IF(
'Table'[Value]>0,
"True",
"False"
)
)
return
COUNTX(
FILTER(
tab,
[Flag] = "True"
),
[ID]
)
False =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[ID],
'Table'[Value],
"Flag",
IF(
'Table'[Value]>0,
"True",
"False"
)
)
return
COUNTX(
FILTER(
tab,
[Flag] = "False"
),
[ID]
)+0
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @dexter2424
Based on your description, I created data to reproduce your scenario.
Table:
You may create two measures as below.
True =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[ID],
'Table'[Value],
"Flag",
IF(
'Table'[Value]>0,
"True",
"False"
)
)
return
COUNTX(
FILTER(
tab,
[Flag] = "True"
),
[ID]
)
False =
var tab =
SUMMARIZE(
ALL('Table'),
'Table'[ID],
'Table'[Value],
"Flag",
IF(
'Table'[Value]>0,
"True",
"False"
)
)
return
COUNTX(
FILTER(
tab,
[Flag] = "False"
),
[ID]
)+0
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Add +0 to your measure. If whatever you're feeding in isn't currently a measure, make it a measure
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!