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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sudharshan1919
Helper III
Helper III

How to get 0 instead of Blank

Hi All,

 

I am using a custom column to show the values is cards. I am placing the column in card and for the card filter i am slecting the respective value to be shown as count. When there are some values it is showing as count, but when there are no values it is showing as Blank. Here, in the Blank place i need the value to be displayed as 0.

I am attaching a small image which can be understood quickly.

Sudharshan1919_0-1658136109871.png

Here, I am having a set of servers in which maintenance mode is On/Off.. In the Off Card and the On Card i have kept the Calculated column and selected the Respective filter for both the cards... When there are No Values of that filter, it is showing as Blank. 

NOTE : I need to achieve this without using any Measures. 

Appreciate a quick help on this.

 

Thanks,

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Sudharshan1919 ,

 

For Power Bi, it looks like you put a column on the card; in fact, Power Bi automatically creates a measure for that column and places that measure on the card.

 

Therefore, this column in the card is a summary measure.

 

You can try this measure to replace it.

Measure =
IF ( ISBLANK ( COUNTROWS ( 'table' ) ), 0, COUNTROWS ( 'table' ) )

 

If you need more help, please share your pbix file without sensitive data.

 

Best Regards

Community Support Team _ chenwu zhu

 

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

4 REPLIES 4
v-chenwuz-msft
Community Support
Community Support

Hi @Sudharshan1919 ,

 

For Power Bi, it looks like you put a column on the card; in fact, Power Bi automatically creates a measure for that column and places that measure on the card.

 

Therefore, this column in the card is a summary measure.

 

You can try this measure to replace it.

Measure =
IF ( ISBLANK ( COUNTROWS ( 'table' ) ), 0, COUNTROWS ( 'table' ) )

 

If you need more help, please share your pbix file without sensitive data.

 

Best Regards

Community Support Team _ chenwu zhu

 

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

selimovd
Super User
Super User

Hey @Sudharshan1919 ,

 

why do you need to achieve this without measures?

If you just use a column you cannot replace a blank with a zero.

 

Best regards

Denis

Hey Denis @selimovd ,

 

Actually i need to show even the Historical data also. The source that i am having is excel.

First we have displayed only the latest data by using the measures. But the Requirement now was given to show Historical data, and when we tried with measures it was not working.. it is either showing the sum of whole data or the latest data.

Thats the reason i need it without measures.

 

Thanks

Hey @Sudharshan1919 ,

 

if you give further details I could take a look into it or propose a solution.

With the requirements you gave it's not possible.

 

Best regards

Denis

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors