Forum Discussion
Create Matrix chart from table chart
- 4 years ago
Hi jie ,
Create a dim table using all the measure values as the column values,such as below:
Then create a measure to get what you need:
Measure = SWITCH ( SELECTEDVALUE ( dim[Stimezone] ), "Othertimezone", CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Stimezone] = "Othertimezone" ) ), "Sametimezone", CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Stimezone] = "Sametimezone" ) ) )I made a simple sample for reference,pls check attached.
Best Regards,
KellyDid I answer your question? Mark my reply as a solution!
Hi jie ,
If you create a matrix with the following setup you will get what you need:
- Rows:
- StimeZone
- Equipment
- Columns
- Can be empty or with one of the above columns has you prefer
- Values
- TraineeID (aggregation count)
That should give expected result.
- jie4 years agoNew Member
Thank u for your answer Miguel.
The problem is that STimeZone is a measure. So, I can't use this for matrix. 😞
- MFelix4 years agoSuper User
Do you need to show the timezone on the matrix?
You can create the matrix has I explained but without the measure. Then place the measure has a card to serve has title or similar.
If you can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message. - v-kelly-msft4 years agoCommunity Support
Hi jie ,
Create a dim table using all the measure values as the column values,such as below:
Then create a measure to get what you need:
Measure = SWITCH ( SELECTEDVALUE ( dim[Stimezone] ), "Othertimezone", CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Stimezone] = "Othertimezone" ) ), "Sametimezone", CALCULATE ( SUM ( 'Table'[Value] ), FILTER ( 'Table', 'Table'[Stimezone] = "Sametimezone" ) ) )I made a simple sample for reference,pls check attached.
Best Regards,
KellyDid I answer your question? Mark my reply as a solution!