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

Showing all products in a Matrix and populating column values for only products selected in slicer?

Hi,

 

Can you show all values in a Matrix table (Product Code, Sales History by Month) and only the products chosen in the slicer filter populate a value for Count Quantity? 

 

Usually, when you click the slicer filter, it filters to remove to show only the product that is in the slicer.

What I want is to keep all the data, but the slicer just chooses the product to populate in the specific column. 

 

*Count Quantity is a value in a datasource (no calculation) 

 

Here is what I want: 

 

Slicer Filter: I choose Product 123-A

So it populates Count Quantity, for only 123-A in all the other ones are blank

 

Product CodeJanuary 2021February 2021March 2021Count Quantity
123-A2353
123-B223 
456-A112 
456-B223 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PBIUWO , Enable this option "show item with no data" 

ShowItemwithoutdata.JPG

 

or  You can show them 0 .

Create a measure with +0

example 

countrows(Table) +0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @PBIUWO ,

You need to copy the Product Code column into a separate table. Use the Product Code in Slicer table as the slicer value.

image.pngimage.png

Create a measure according to the following formula.

Measure Count Quantity = 
CALCULATE(
    SUM('Table'[Count Quantity]),
    FILTER(
        'Table',
        'Table'[Product Code] in ALLSELECTED(Slicer[Product Code])
    )
)

Then select the Product Code field and enable the option "show item with no data" .

image.png

image.png

This is my PBIX file.

https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-lazhang_microsoft_com/EQYlknZXHepGociuZ-kVrj...

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

amitchandak
Super User
Super User

@PBIUWO , Enable this option "show item with no data" 

ShowItemwithoutdata.JPG

 

or  You can show them 0 .

Create a measure with +0

example 

countrows(Table) +0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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