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

if isfiltered then display sales for null values also

HI Everyone,

If filtered the month in slicer then sales should be displayed for zero values also for example please find the screenshot below.
IF i select Month as 5 or 10  as in below picture there is no sales for product 5 and 6 but when we filter months 5 or 10  the output showing only product 10 and 11 only but my requirement is as shown in below pic.

if there is no sales then it has to display  zero value  in Table 

sales for nul values also .jpg



 

 

 

 

 

 

 

 

 

 

 

Thanks in Advance 
sandeep

1 ACCEPTED SOLUTION

Hi the above pbix file is like static one and please refer below link as i need like this.

https://community.powerbi.com/t5/Desktop/If-we-select-date-in-slicer-display-sales-of-the-products-t...

I got solution.



Thanks
Sandeep

View solution in original post

5 REPLIES 5
vivran22
Community Champion
Community Champion

@avulasandeep 

 

Hi,

 

The trick is to restructure the data table:

 

Table Structure.PNG

 

So, now when you will use the slicer to filter the table, it will give you the desired result:

 

Filter table.PNG

 

Hope this should answer your query.

 

Thanks,

Vivek

 

 

 

PS: I have used Excel but same can be replicated in PowerBI desktop.

 

Please mark it as accepted solution if it answers your query.

 

 

Hi @vivran22
My question is this only when we are doing in desktop it not displaying blank values for not having product of sales and if the sales is blank need to show it as zero ....can you show it in PowerBI desktop ..for me it not displaying when we do filter

@avulasandeep 

 

Here is the pbix file

 

Thanks,

Vivek

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi the above pbix file is like static one and please refer below link as i need like this.

https://community.powerbi.com/t5/Desktop/If-we-select-date-in-slicer-display-sales-of-the-products-t...

I got solution.



Thanks
Sandeep

Hi @vivran22
My question is this only when we are doing in desktop it not displaying blank values for not having product of sales and if the sales is blank I need to show it as zero ....can you show it in PowerBI desktop ..for me it not displaying when we do filter

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.