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
TS_PowerBI
Frequent Visitor

Matrix with Parent Header or Grouping Measure by Type

Hello all,

 

I have 9 measures used on multiple other reports. 

I'm trying to build a Matrix and have the below results. It works but not grouped well and messy.

 MTD SalesQTR SalesYTD SalesInventorySeconday InventoryIn-TransitAt SeaFuture Orders ConfirmedFuture Orders Pending

East

         
West         
Central         

 

 

I want to have the measures have a parent title, or group them by there type (Sales, Inventory, Transit, Order). Imagine below but with merged cells. 

 

I've tired everything I can think of but falling short. Does anyone know how to do this? 

 

power.jpg

 

1 REPLY 1
hnguy71
Memorable Member
Memorable Member

hi @TS_PowerBI 

 

It's very possible. You will need a table, likely disconnected from your model, with the 4 states AND your measure titles. Add both into your matrix as columns.

 

Next, you may need a top level measure to determine what to show. Something along this line:

 

VAR _FindMeasure = SELECTEDVALUE(DisconnectedTable[MeasureTitle])
RETURN
SWITCH( _FindMeasure,
    "MTD Sales", [MTD Sales],
    "Inventory", [Inventory],
    "Future Orders Pending", [FutureOrdersPending]
)

 



EDIT: Here's a sample set-up you'd likely need

hnguy71_0-1685199195565.png


Top-level measure:

hnguy71_1-1685199232546.png


Expected results:

hnguy71_2-1685199253413.png

 





Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

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.