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
jdwalker5
Helper II
Helper II

Dynamically Limited Matrix Based off Parameter Slicer

Hello,

 

I am recreating a report in Power BI that currently is built in Tableau.  In the Tableau version they have a parameter slicer that filters the report for weekly, monthly, and quarterly results.  That part I was able to replicate, however, they also have in some way limited the results in the matrix to only show current week, month, quarter and previous week, month, quarter.  Images below for reference:

 

Parameters.png

I've tried using top N in the filters pane, but that only allows you to use one per visual.  In this case I would need 3 top N's, one each for week, month and quarter depending on which option is selected in the slicer.  Also, there is a separate line chart that requires all weeks, months, quarters to be displayed, so the limit must only be in the matrix.

 

Appreciate any help that can be provided.

1 ACCEPTED SOLUTION
jdwalker5
Helper II
Helper II

I was able to get it to work using a calculated column with the SWITCH function to label the weeks I needed with a 1 and the rest of the weeks with a 0.  I then filtered the visual to that new column = 1 and it worked.
There are probably other ways to do it more efficiently using the existing field parameters and measures, though.
Appeciate your willingness to help!

View solution in original post

2 REPLIES 2
jdwalker5
Helper II
Helper II

I was able to get it to work using a calculated column with the SWITCH function to label the weeks I needed with a 1 and the rest of the weeks with a 0.  I then filtered the visual to that new column = 1 and it worked.
There are probably other ways to do it more efficiently using the existing field parameters and measures, though.
Appeciate your willingness to help!

Anonymous
Not applicable

Hi @jdwalker5 ,

Based on the information you have provided, can you provide some sample data (without privacy information) and your desired output, so that we can better understand and solve the problem you are experiencing.

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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
Top Kudoed Authors