Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
NK2603
New Member

Card View

Hello. I am beginner in Powerbi and have one question.

How to show in Card "0" if there is no row and data at all in table when filtering in Report view? I am filtering by slicer in Report view and some items dont have data records in table and at the moment Card shows as "(Blank)" for those items. I need them to show as 0.

 

Thank you in advance.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @NK2603 ,
Thanks to @_AAndrade  for the solution.
Here are what i want to add:
Sample Data

vheqmsft_0-1717038322373.png

Create measures

Measure 2 = 
IF(
    COUNT('Table'[Value]) = 0,
    0,
    COUNT('Table'[Value])
)
Measure 3 = 
IF(
    ISBLANK(
        SELECTEDVALUE('Table'[Value])
    ),
    0,
    COUNT('Table'[Value])
)

Final output

vheqmsft_1-1717038386373.png

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @NK2603 ,
Thanks to @_AAndrade  for the solution.
Here are what i want to add:
Sample Data

vheqmsft_0-1717038322373.png

Create measures

Measure 2 = 
IF(
    COUNT('Table'[Value]) = 0,
    0,
    COUNT('Table'[Value])
)
Measure 3 = 
IF(
    ISBLANK(
        SELECTEDVALUE('Table'[Value])
    ),
    0,
    COUNT('Table'[Value])
)

Final output

vheqmsft_1-1717038386373.png

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

_AAndrade
Resident Rockstar
Resident Rockstar

Hi @NK2603,

Try somethinh with IF formula, for example:
IF ( COUNTROWS( Name of your table) = 0, 0)





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.