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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Get multiple columns in one columns

Hi All,

 

I have calculated Maximum and Average measure. Please find the below screenshot:

ShipraJain_1-1652355909580.png

For get this metrics, I have used formula 

1. Max = MAXX(ALL('Table'[Brand]),[Sum_Traffic])

2. Average = Averagex(ALL('Table'[Brand]),[Sum_Traffic])

 

My query is : Can we convert this table as 

ShipraJain_2-1652356047567.png

 

Thanks

Shipra

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

You can create a matrix visual and refer to the screenshot below to drag the corresponding fields to the visual.

yingyinr_0-1652843070816.png

If the above one still can't help you get the desired result, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi All,

 

Thanks for the help.

I want multi-level matrix as below format.

For example: In under Traffic column I need Sum, max and average value.

 

Traffic
SumMax

Average

 

Thanks

Shipra

Anonymous
Not applicable

Hi @Anonymous ,

You can create a matrix visual and refer to the screenshot below to drag the corresponding fields to the visual.

yingyinr_0-1652843070816.png

If the above one still can't help you get the desired result, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Anonymous
Not applicable

Hi All,

 

Is there any way to return multiple sub-columns into one column?

I used the below code:

Parent_Column =
Var Sum1 = SUM('RN Dashboard'[Traffic Out])
var max1 = MAXX(ALL('RN Dashboard'[Brand]),[Sum_Traffic])
Var Avg1 = AVERAGEX(ALL('RN Dashboard'[Brand]),[Sum_Traffic])
 
Return
 
Please let me know if way is available.
 
Thanks
Shipra
Anonymous
Not applicable

Hi @Anonymous ,

What does the original data in the table “RN Dashboard”  look like? Could you please provide some sample data from the table RN Dashboard”  in Text format? Is Key Attributes a column that actually exists in the table? If so, you can create your matrix with the following settings...

1. Create a matrix visual

yingyinr_0-1652770729859.png

2. Toggle off "Stepped out" option under the tab Row headers in Format pane

yingyinr_1-1652770880593.png

yingyinr_1-1652771261242.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Whitewater100
Solution Sage
Solution Sage

Hi:

You can kinda do what you want but can't put measures in columns. Please see format options for matix to get the look below:

 

Whitewater100_0-1652357735508.png

I hope this helps!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.