cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mohinderbabu
Helper I
Helper I

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

@mohinderbabu 
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


@mohinderbabu 
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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors