Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi all,
I need your help with this problem.
I create a table chart with selected value using selectedvalue function. For example, I have a filter with distincts time zones, when I clic in some of then, the column STimeZone of my table is upload.
My question is, I want to create a matrix table with resumen of How many trainers (count traineeId) by equipment and StimeZone I have?
Plz, I need your help.
Solved! Go to Solution.
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,
Kelly
Did 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:
That should give expected result.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank u for your answer Miguel.
The problem is that STimeZone is a measure. So, I can't use this for matrix. 😞
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,
Kelly
Did I answer your question? Mark my reply as a solution!
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.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsDon't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 38 | |
| 31 | |
| 27 |