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
pbrainard
Helper III
Helper III

Measure Calculation with 0 instead of blank

How can I get this measure to return 0 if there are no Bednights to calculate?

 

cntBNID = CALCULATE(COUNTROWS('Bed Night Log'), FILTER('Bed Night Log','Bed Night Log'[bnHousingUnit] <> "a178000000DBTIuAAP" && 'Bed Night Log'[bnHousingUnit] <>"a178000000E2AY5AAN"))
2 ACCEPTED SOLUTIONS
ribisht17
Super User
Super User

Hi @pbrainard 

You may add +0 at the end of your formula.

Thanks,

Ritesh

 

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

Try this

Measure = coalesce([cntBNID],0)


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

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Try this

Measure = coalesce([cntBNID],0)


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

Perfect! Thank you!

You are welcome.


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

Hi @pbrainard 

You may add +0 at the end of your formula.

Thanks,

Ritesh

 

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