Forum Discussion
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 Sales | QTR Sales | YTD Sales | Inventory | Seconday Inventory | In-Transit | At Sea | Future Orders Confirmed | Future 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?
1 Reply
- hnguy71Super 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
Top-level measure:
Expected results: