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! Learn more

Reply
vinayguptak
Frequent Visitor

Slicer Affecting Only Certain column in a Matrix

Hi.  I am running in to a bit of a maze.  I am trying to create a matrix where only certain columns are affected by the slicer.  For example: If I select previous year (2022), then my first column should change, but 2 column, which is my current year (2023) data shouldn't change.

vinayguptak_0-1680924316809.png

 

Is this possible?  Any suggestion would be highly appricated.  Thank you.

4 REPLIES 4
vinayguptak
Frequent Visitor

@Jihwan_Kim Thank you so much for the suggestion and help.  I was able to figure out.

vinayguptak_1-1681048611281.png

 

 
vinayguptak_0-1681048546299.png

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.

Please check the below picture and the attached pbix file.

I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_0-1680927005346.png

 

Jihwan_Kim_1-1680927324507.png

 

Original qty by slicer: = 
CALCULATE ( SUM ( Sales[Qty] ), Category[Category] = "Original" )

 

Replaced qty in 2022 =
CALCULATE (
    SUM ( Sales[Qty] ),
    Category[Category] = "Replaced",
    'Calendar'[Year] = 2022
)

 

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

@Jihwan_Kim Thank you so much for the suggestion.  I have one more question.  So the first section which is highlighted in Orange, should change and the 2nd column which is YTD shouldn't change.

Also, the YTD is dynamic year so in 2024, it will display that years data.  Can I use MAX(Year) to pull the current year.

 

Also, both column should if slicer Replacement Reason is selected.

 
image.png

 

 

Hi,

Please share your sample pbix file's link, and then I can try to look into it.

Thank you.


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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.