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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.