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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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