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
sinanalmac
Resolver I
Resolver I

replace blanks with 0

Hi All,
I'm trying to replace 0 value  if the column  value is blank 

here is my  formula 

Measure = IF(DISTINCTCOUNT(HRBC[ID])=BLANK(),"Black",DISTINCTCOUNT(HRBC[ID]))

Capture.JPGThis formula helps me with the other reports. I always use this formula. 
 
But this time it wasn't worked how can I  solve this problem. 
 
Thank you
1 ACCEPTED SOLUTION

Hello @sinanalmac ,

 

Can you please try creating table of Department which will contain DistinctValue of Department.

Give relationship of Department table to HRBC table on departmentname.

 

Pull Department from dimension table in visual and same measure.

 

IF this solves the requirement, please accept it as a solution. Kudos are also appreciated!

 

Thanks!

Cheers,
Shishir

View solution in original post

6 REPLIES 6
Shishir22
Solution Sage
Solution Sage

Hello @sinanalmac ,

 

Please try using ISBLANK function.

 

NewMeasure = IF(ISBLANK([YourMeasure]),0,[YourMeasure])

 

IF this solves the requirement, please accept it as a solution. Kudos are also appreciated!

 

Thanks

Cheers,
Shishir

hello @Shishir22 , it didn't work too

sinanalmac_0-1613501821077.png

 

Hello @sinanalmac ,

 

Can you please try creating table of Department which will contain DistinctValue of Department.

Give relationship of Department table to HRBC table on departmentname.

 

Pull Department from dimension table in visual and same measure.

 

IF this solves the requirement, please accept it as a solution. Kudos are also appreciated!

 

Thanks!

Cheers,
Shishir

Yes . It's done. Thank you for the solution @Shishir22 

sinanalmac_0-1613502677217.png

 

PaulDBrown
Community Champion
Community Champion

@sinanalmac  just add a + 0 to your measure





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






sinanalmac_0-1613501572089.png

it didn't work. I have tried it.

 

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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