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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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