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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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