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

Particular action of slicer on matrix

Hello Experts,

this is my data

1.png

This is my report in power bi with matrix and slicer2.pngThis is my action in slicer and i get this matrix 

3.png

But i want this matrix

Screenshot 2023-01-10 213109.png

I mean the action of slicer is only on sale column data not on stock column data, I want whole stock data for particular Ref No.

Then how i do that?

6 REPLIES 6
MHTANK
Helper III
Helper III

Hello experts,

I am waiting for solution...

ddpl
Solution Sage
Solution Sage

@MHTANK try this

 

Create below measures :

 

Sales No = CALCULATE(SUM('Table'[No]),'Table'[Sales/Stock] = "Sale")
Sales Days = CALCULATE(AVERAGE('Table'[Days]),'Table'[Sales/Stock] = "Sale")
Stock No = CALCULATE(SUM('Table'[No]),'Table'[Sales/Stock] = "Stock",ALL('Table'[Date]))
Stock Days = CALCULATE(AVERAGE('Table'[Days]),'Table'[Sales/Stock] = "Stock",ALL('Table'[Date]))
Sum of No = [Sales No] + [Stock No] 
Ave of days = 
IF([Sales Days] == BLANK(), [Stock Days],
  IF([Stock Days] == BLANK() , [Sales Days],
  ([Sales Days] + [Stock Days])/2))
 
ddpl_0-1671776940113.png

 

 
 
 

My solution is the last photo of my problem.

If I filter date from slicer I want a complete sale data for that filtered date, but in stock data I want a complete data without affecting by filtered date in same matrix.

v-jingzhang
Community Support
Community Support

Hi @MHTANK 

 

It's a little complicated. We need to create measures to realize this target and add some Dim tables to the model. As of now I get a result like below but haven't figured out how to filter out the highlighted ones. I will upload a whole sample file once I accomplished all. Hope it won't be too long. 

vjingzhang_0-1671434660057.png

 

Best Regards,
Community Support Team _ Jing

Hello... you get solution?

Ok, I am waiting for your solution.

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