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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Possible to group columns with main header?

Is it possible to create a group of columns that are together, or do i need to make a custom box on top of the grouped columns and is not linked to the table?

 

Here below is a visual of what i am trying to convey. The question is if these top columns can be created somehow? and if so, how to do it?

 

cap1.JPG

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

 

You may transform your data table like below and then use Matrix visual to get it.

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

 

You may transform your data table like below and then use Matrix visual to get it.

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-cherch-msft ,

 

I would like to accept your reply as solution, however i forgot to mention in my real life example (not the sample data).

 

I have this table:

 

cap5.JPG

 

Each column in this table is based on a calculated measure that combine multiple columns in the data model. Therefore, i am not able to create a conditional column that can distinguish between data used for KPI 1 and KPI 2. 

 

Is it possible to do this grouping of columns based on measures rather than columns?

So i can group all KPI's together at the top for easier visual consumption.

 

sorry for not being specific enough with first example.

Hi @Anonymous 

 

It's impossible to group them based on measures because measures are dynamic and they cannot be used in matrix columns.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi v-cherch-msft

By chance, after 4 year, is it possible to create a share header for 2 or more columns created by measures?

Best Regards

Yes, but it's pain. I'm doing this from memory, so I may get some details wrong, but you should be able to figure it out.

Go to Enter Data and enter the table:

HeaderHeader SortByMeasure NameMeasure Name SortBy
Sales1Product A1
Sales1Product B2
Sales1Product C3
Customer By Importance2high4
Customer By Importance2low5

 

The create a matrix visual where you have Header and Measure Name both in the Column field, and Country in the rows (if I recall correctly). 

Then create a measure for the visual

= SWITCH( SELECTEDVALUE(Measure Name),

"Product A", [Product A], 

"Product B", [Product B], 

"Product C", [Product C], 

"High", [High], 

"Low", [Low])

and drag that measure into the values.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.