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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
amyvgordon
Frequent Visitor

Show different sub-headings under each heading of a matrix

Hi All, 

 

I am creating a dashboard for a retail business that has multiple outlets. Each outlet has a set of KPI's that are slightly different. Is there a way I can show different sub-headings under each heading on a matrix. 

 

By way of example, our existing report (in excel) is set up with headers like this (with all headers merged) :

 

Heading:Visitors Outlet 1  Outlet 2   
Sub-Heading:Site 1Site 2TransactionsSalesCOGSAverage Transaction ValueTransactionsSalesCOGS

 

I could easily do this by creating a different measure for each column, but given the number of outlets is likely to grow I'm reluctant to do this as it creates a lot of work to update the reports every time the structure of the business changes. 

 

I've already got a data source with the planned structure outlined, but it's displaying the correct values where I come unstuck. Is there a way I could set this up to dynamically change the measure shown according to the column headings?

 

Thanks!

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @amyvgordon ,

Isn't your data structure like this:

vyanjiangmsft_0-1686809182287.png

If it is, simply put the Heading and Sub-Heading columns in a matrix Columns, Value in matrix Values. In this way, although you add rows in the data source, the visual can still get correct result.

vyanjiangmsft_1-1686809367457.png

Best regards,

Community Support Team_yanjiang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yanjiang-msft ,

 

My data is much more complicated than that unfortunately. There are four tables that drive the values I want to show in my matrix, and some of the matrix columns use data from more than one of the tables. 

 

I could group the data in to a table in a query or a dax table I suppose, but that's going to increase processing time significantly because of how much data I'm working with. 

 

Thanks,

A

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.