Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi all, I don't know if this is possible but I am trying to find a way to row a matrix that currently only consists of 6 measures added to the Values part of a Matrix. There are no rows or columns added to the visual. I turned on the setting to "switch values to row groups rather than columns" so the data would appear in a table format.
Here's what the matrix looks like:
| Current Plan | 200 |
| Last 2 Weeks Actuals | 300 |
| Last 4 Weeks Actuals | 600 |
| Year to Date Actuals | 1000 |
| Prev Year Actuals | 1200 |
| What If Scenario | 500 |
I would like to sort this matrix by the measures that are in the visual. I tried creating a virtual table using the UNION function and adding each measure as a new ROW, but that did not work.
Here's what I would like it to look like:
| Prev Year Actuals | 1200 |
| Year to Date Actuals | 1000 |
| Last 4 Weeks Actuals | 600 |
| What If Scenario | 500 |
| Last 2 Weeks Actuals | 300 |
| Current Plan | 200 |
Any ideas would be very much appreciated!
Solved! Go to Solution.
Hi, @benlynch225 ;
You could enter a table such as:
then create a measure.
Measure = SWITCH(MAX('Table (2)'[Name]),
"Current Plan",[Current Plan],
"Last 2 Weeks Actuals",[Last 2 Weeks Actuals],
"What If Scenario",[What If Scenario],
"Prev Year Actuals",[Prev Year Actuals])
the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @benlynch225 ;
You could enter a table such as:
then create a measure.
Measure = SWITCH(MAX('Table (2)'[Name]),
"Current Plan",[Current Plan],
"Last 2 Weeks Actuals",[Last 2 Weeks Actuals],
"What If Scenario",[What If Scenario],
"Prev Year Actuals",[Prev Year Actuals])
the final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is perfect - thank you very much!
You should be able to sort this by the same order that you put the measures into the Values well.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 84 | |
| 49 | |
| 38 | |
| 31 | |
| 30 |