Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Implementing Predefined Measure Groups in Matrix Table via Parameter Filtering

Hi everyone,

I’m currently working on a matrix table in Power BI (Fabric) where I’m using a dynamic column filter based on a parameter. The goal is to allow users to choose which column to display in the matrix, and I followed this tutorial to set it up: 

 

This setup works, but the matrix only shows one column at a time because all the possible values (like Value, MoM Change, MoM %, YoY Change, etc.) are bundled into one parameter field.

 

Here’s what I want to achieve now: I want to create predefined filters (like buttons or slicers) where, for example, clicking "MoM" would display both "MoM Change" and "MoM %" at the same time in the matrix. Similarly, clicking "YoY" would show "YoY Change" and "YoY %", and so on. Basically, a way to group related measures and show them together with a single click.

I’m wondering how to implement this kind of grouped column filtering in the matrix visual. Has anyone done something similar or has suggestions?

 

Example of what I want to happen visually:

 

When selecting "MoM" group filter:

Category MoM Change MoM %
Product A+50+5%
Product B-20-2%


Then, w
hen selecting "YoY" group filter:

 
Category YoY Change YoY %
Product A+100+10%
Product B-30-3%

 

What I'm trying to achieve is that when I click on a predefined filter (like “MoM” or “YoY”), the matrix table automatically updates to show only the related columns. So if I click “MoM”, it shows MoM Change and MoM %; if I click “YoY”, it shows YoY Change and YoY %, and so on.

 

This would allow users to quickly switch views between grouped calculations, instead of selecting one column at a time.


Thank you in advance to anyone who can help or guide me on how to approach this!
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

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

One of ways is to create a parameter and add more columns (for grouping purpose) by fixing the parameter formula like below.
Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1744081471245.png

 

 

Jihwan_Kim_0-1744081441442.png

 

 

Parameter_Measures = {
    ("YoY", NAMEOF('sales'[YoY]), 0, "YoY", 1),
    ("YoY %", NAMEOF('sales'[YoY %]), 1, "YoY", 1),
    ("MoM", NAMEOF('sales'[MoM]), 2, "MoM", 2),
    ("MoM %", NAMEOF('sales'[MoM %]), 3, "MoM", 2)
}

 


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.

View solution in original post

4 REPLIES 4
v-bmanikante
Community Support
Community Support

Hi @Anonymous ,

 

May I ask if you have gotten this issue resolved?

 

If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.

 

Regards,

B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @yvonniecm08 ,

 

We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

 

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,

B Manikanteswara Reddy

v-bmanikante
Community Support
Community Support

Hi @Anonymous ,

 

We would like to follow up to see if the solution provided by the super user resolved your issue. Please let us know if you need any further assistance.

 

If our super user response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Regards,

B Manikanteswara Reddy

Jihwan_Kim
Super User
Super User

Hi,

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

One of ways is to create a parameter and add more columns (for grouping purpose) by fixing the parameter formula like below.
Please check the below picture and the attached pbix file.

 

Jihwan_Kim_1-1744081471245.png

 

 

Jihwan_Kim_0-1744081441442.png

 

 

Parameter_Measures = {
    ("YoY", NAMEOF('sales'[YoY]), 0, "YoY", 1),
    ("YoY %", NAMEOF('sales'[YoY %]), 1, "YoY", 1),
    ("MoM", NAMEOF('sales'[MoM]), 2, "MoM", 2),
    ("MoM %", NAMEOF('sales'[MoM %]), 3, "MoM", 2)
}

 


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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.