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
Sushil03
Regular Visitor

Help with creating Groups of columns to be used with Field parameter

Hello,

Currently I am trying to achieve something like this in Power BI along with field paramaters, allowing user to choose what columns he/she wants to see in the table.
subcat.png

I successfully used field paramters to show/hide the columns by selecting an option from a dropdown

Sushil03_0-1722259380795.png

Sushil03_1-1722259495300.png

 


But I want to show a parent header(like a hierarcy) on top of the columns like it is in image1.
Can someone help me find a solution to tackle this problem ?

11 REPLIES 11
SamWiseOwl
Super User
Super User

@Sushil03 you still need the original column in the visual so Query1 Performance Metrics as well as the group column


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi @SamWiseOwl 

I had tried that as well.

Sushil03_0-1722286742052.png

 

Do you have something ticked in the slicer? Having nothing selected could also cause an error.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

No, I have not selected anything

Sushil03_0-1722288852660.png

 

Have you tried using it in a matrix?
I'm afraid I'm not sure why this is erroring both visual types should work:

SamWiseOwl_0-1722327603462.png

The only way I can get the same error is by forcing an invalid filter. Here I'm filtering by the Measure 1&3 group but in the other slice choosing Measure 2.

Try filtering in the GROUP slicer to just one item.

SamWiseOwl_0-1722328301015.png

 

Does it error then?
Could one of your data fields be clashing with a measure?


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

I used matrix and it is still the same (with 1 group selected in the slicer)

Sushil03_0-1722329430961.png

 

Apologises @Sushil03 I might need to leave it for someone else to solve.

Without the file I can't work out from my end why it won't work.

It works in my test file 🤔


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Here's some dummy data, if you want to try.

https://drive.google.com/file/d/1VXJuU_nyROqRiJQbQO53hx920o7NnoYe/view?usp=sharing

I am trying to achieve something like this but with field parameters(ability to hide/show group of columns)

Sushil03_0-1722332689606.png

 



Hi @Sushil03 ,

 

I see, you are using columns within the category groupings instead of measures. Meaning the new column tries to introduce a filter that doesn't exist.

You can either use the grouping only in the slicer (page 1) or you can create measures for each of the calculations, then repeat the steps we did before (page 2).

 

I've attached both examples here.

 

I'd check out the SQLBI youtube channel for a deep dive into how these filters work or check out the free Wise Owl video course here.


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

SamWiseOwl
Super User
Super User

Hi @Sushil03 

 

Assuming you created the measure list using Modeling and Field values:

SamWiseOwl_0-1722262198894.png

Go to the table that was created Right click on the first column and choose New Group:

SamWiseOwl_2-1722262288963.png

 

Then group the items together like so:

SamWiseOwl_1-1722262265032.png

Use this field in your slicer and columns of your matrix:

SamWiseOwl_4-1722262403489.png

 

If this helps please mark it as a solution for others to find 🙂


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Hi Sam,
Thank you for the reply.
One question, will this work for a table or will have to change it to matrix ?

if I add Query1 Performance Metrics(groups) to columns it gives me error

Sushil03_0-1722270163107.png

Sushil03_1-1722270259529.png

 

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!

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