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
crln-blue
Post Patron
Post Patron

Set of fields in Field Parameters

Hello, I need some help on the Field Parameters..

 

My table has about 30 columns and with that, it is best if some columns are frozen. But because the Table visual does not have a freeze columns option (only the Matrix visual does but my data is mostly composed of descriptive columns, not figures, so the Matrix visual messes up the view I want to), I thought of maybe having a selection for the user where the user will select the category for the fields the user wants to have in the table. And this leads me to the Field Parameters.

 

The Field Parameters feature lets the user select the specific column to apply on the visual. However on my case, I want my selection to be a group of columns. 

Screenshot 2023-10-17 005536.png

 

Where 

Set A will be Field-1, Field-2, Field-3, Field 4

Set B will be Field-5, Field-6, Field-7

Set C will be Field-8, Field-9, Field-10

Set D will be Field-11, Field-11

 

How do I achieve this? Thank you!

 

2 REPLIES 2
jtspilker
Helper I
Helper I

@crln-blue 

create a new field parameter (if you haven't already). Once you select the measures you want included, Power BI will automatically create a calculated table for you with the form of

("MeasureName1", NAMEOF([MeasureName1]),0)

for each measure.

You can then manually edit this table by adding another column (with a comma after the number that denotes priority - 0 above) and typing in what you want the category called. Attached is an example where I've done this, though I just used 2 categories.

jtspilker_0-1697485327569.png

Basically, you're just telling Power BI which measure belongs to which category. In the Table view, you can then rename this column you manually added to be whatever you want (I called it MeasureType)

jtspilker_1-1697485393724.png

You can then add in MeasureType (or whatever you want to name your set of categories) to your slicer that users interact with to select the set of measures they want to see

Idrissshatila
Super User
Super User

Hello @crln-blue ,

 

so you add the classification after the order in the field parameter dax as the following

Idrissshatila_0-1697484965720.png

 

Parameter = {
    ("field-1", NAMEOF('Table'[field-1]), 0,"Set A"),
    ("field-2", NAMEOF('Table'[field-2]), 1,"Set A"),
    ("field-3", NAMEOF('Table'[field-3]), 2,"Set A"),
    ("field-4", NAMEOF('Table'[field-4]), 3,"Set A"),
    ("field-5", NAMEOF('Table'[field-5]), 4,"Set B"),
    ("field-6", NAMEOF('Table'[field-6]), 5,"Set B"),
    ("field-7", NAMEOF('Table'[field-7]), 6,"Set B"),
    ("field-8", NAMEOF('Table'[field-8]), 7,"Set C"),
    ("field-9", NAMEOF('Table'[field-9]), 8,"Set C"),
    ("field-10", NAMEOF('Table'[field-10]), 9,"Set C"),
    ("Field-11", NAMEOF('Table'[Field-11]), 10,"Set D"),
    ("Field-12", NAMEOF('Table'[Field-12]), 11,"Set D")
}

 

Idrissshatila_1-1697484995749.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




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.