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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
StevenT
Helper V
Helper V

Datatable options

Hi, is there a way to take this table to use the fields to populate the row in a matrix by changing the row based on what the user chooses (Field FieldName),  and create a button style out of this.. so when the user clicks a button, it changes the Dimension in a matrix row depending on what is chosen?

Here's my table

CategoryTable =
    DATATABLE(
        "Label", STRING,
        "FieldName",STRING,
        "Index", INTEGER,
        {
            { "Title", "TrackList[Title]", 0 },
            { "Genre", "Genre[Genre]",1 },
            { "Artist", "Artist[Artist]",2 },
            { "Album", "Album[Album]",3 },
            { "Record Label","RecLabel[RecLabel]", 4 },
            { "Region", "Region[Region",5 },
            { "Retail Sales - Tracks", "PurchasedFrom[PurchasedFrom",6 },
            { "Retail Sales - Albums", "PurchasedFrom[PurchasedFrom",7 }
        }  
    )
2 ACCEPTED SOLUTIONS
KNP
Super User
Super User

I think I understand what you want.

Easier for me to explain in a video.

https://www.youtube.com/watch?v=aQr76sGwFo4

 

Let me know if I've missed the point or you need further detail.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

View solution in original post

v-agajavelly
Community Support
Community Support

Hi @StevenT ,


Thanks @wardy912  and @KNP Did you get a chance to try the solution that @wardy912  suggested using Field Parameters?
That approach is indeed the correct and simplest way to dynamically switch the dimension (like Category or Region) in your matrix rows.

Once you’ve created the Field Parameter under Modeling - New Parameter - Fields, make sure to.

  1. Add the generated parameter field to the Rows section of your matrix visual.
  2. Create a slicer using the same parameter and set it to Button style (under Format → Slicer settings → Style → Tile).
  3. Now, when you click a button (e.g., Category or Region), your matrix will automatically switch the row dimension accordingly.

This setup gives you exactly the button-style field switcher you were looking for.

Thanks,
Akhil.

View solution in original post

4 REPLIES 4
v-agajavelly
Community Support
Community Support

Hi @StevenT ,


Thanks @wardy912  and @KNP Did you get a chance to try the solution that @wardy912  suggested using Field Parameters?
That approach is indeed the correct and simplest way to dynamically switch the dimension (like Category or Region) in your matrix rows.

Once you’ve created the Field Parameter under Modeling - New Parameter - Fields, make sure to.

  1. Add the generated parameter field to the Rows section of your matrix visual.
  2. Create a slicer using the same parameter and set it to Button style (under Format → Slicer settings → Style → Tile).
  3. Now, when you click a button (e.g., Category or Region), your matrix will automatically switch the row dimension accordingly.

This setup gives you exactly the button-style field switcher you were looking for.

Thanks,
Akhil.

And it worked! 

wardy912
Super User
Super User

Hi @StevenT 

 

 You can use field parameters to alter a visuals contents by what the user has chosen.

 

Go to Modelling, Parameters, drop down to fields


wardy912_0-1760988634163.png

Select whatever fields you want to choose from, for this example i've chosen category/region

 

wardy912_1-1760988773237.png

 

wardy912_2-1760988813755.pngwardy912_3-1760988841212.png

--------------------------------

I hope this helps, please give kudos and mark as solved if it does!

 

Connect with me on LinkedIn.

Subscribe to my YouTube channel for Fabric/Power Platform related content!

KNP
Super User
Super User

I think I understand what you want.

Easier for me to explain in a video.

https://www.youtube.com/watch?v=aQr76sGwFo4

 

Let me know if I've missed the point or you need further detail.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.