Forum Discussion
TS_PowerBI
3 years agoFrequent 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 Sales QTR Sales YTD S...
hnguy71
3 years agoSuper 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: