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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Display 0 for measure with no value

Hi PowerBI Gurus,

 

Hope you all are keeping well.

 

I have a Measure which calculates Returns% = [No of Returns]/[No of Sales]. when I pull the month from calendar table and measure from another query and put it in a table it shows only the months with data and doesnt display other months. I know there is an option to Show Items With No data. But due to certain limitations I dnt want to use that option and instead want all the months to be displayed with 0% against the month with no data.

 

Any leads would be apprecaited. Thanks in advance for your time.

 

2 ACCEPTED SOLUTIONS
Jihwan_Kim
Super User
Super User

Hi,

Please try something like below whether it suits your requirement.

 

Returns% = 
        ( [No of Returns]/[No of Sales] ) + 0

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

@Anonymous 
Or you can use

If(ISBLANK([No of Returns]/[No of Sales]),0,([No of Returns]/[No of Sales]))

 

If solved, please mark as SOLUTION

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi,

Please try something like below whether it suits your requirement.

 

Returns% = 
        ( [No of Returns]/[No of Sales] ) + 0

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


@Anonymous 
Or you can use

If(ISBLANK([No of Returns]/[No of Sales]),0,([No of Returns]/[No of Sales]))

 

If solved, please mark as SOLUTION

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.