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
Anonymous
Not applicable

Show items with no data as 0 instead of blanks

Hi All, 

 

I've created a mesure to calculate a number of employees that left the company: 

 

 

HC-Leavers = VAR vleavers =
  SUMMARIZE ( FILTER ( 'xa BuildUp To Gross',
     'xa BuildUp To Gross'[Administrative End Date] >= MIN ( Calendar[Date] )
        && ( 'xa BuildUp To Gross'[Administrative End Date]<= MAX ( Calendar[Date] ) )
        ),'xa BuildUp To Gross'[Payroll nb]
  )
RETURN
COUNTROWS ( vleavers)

 

The issue is that when I apply filter/slicer some of the result is no data and the visual/graph that I'm using (Card) shows as the result as (blank), and i would like to show as zero. 

 

Anyone have any clue how can i proceed ? 

1 ACCEPTED SOLUTION
Floriankx
Solution Sage
Solution Sage

One way, maybe not the most elegant one:

 

HC-Leavers_0:=IF(ISBLANK(HC-Leavers),0,HC-Leavers).

 

Best regards.

View solution in original post

3 REPLIES 3
Floriankx
Solution Sage
Solution Sage

One way, maybe not the most elegant one:

 

HC-Leavers_0:=IF(ISBLANK(HC-Leavers),0,HC-Leavers).

 

Best regards.

Anonymous
Not applicable

Thanks a lot @Floriankx  it worked properly. 

 

I've hided the calc, and displayed this new measure as the main one. 

 

Thanks ! 

Ashish_Mathur
Super User
Super User

Hi,

 

Could you share a dataset and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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
Top Kudoed Authors