Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello All,
Is it possible to replicate the below in a matrix where the rows are actually measures.
I want to be able to use the date slicer based off my calendar table to automatically adjust the below table. For example current the date selected is April 2021 so the below table shows April 2021 and April 2020 (CY and PY columns) however I want these to change to March 2021 and 2020 when I select March 2021.
Cheers,
James
Hey @JPAnalytics ,
when CY and MTD are columns (what you confirmed), then it's possible:
Display DAX Measures in a Matrix on Rows - What the fact.bi
Then use the matrix visual, let the rows empty, but CY MTD and PY MTD in the columns and the measures as values.
Then activate option "Show on rows":
Then the matrix should look like your example.
Unforuntely this does not work.
The measures show on rows like you say but the columns do not work, also how would I get the target column?
Hi, @JPAnalytics ;
You could create a column as follows:
CY PY = IF([yearmonth]=2020,"PY MTD","CY MTD")
and put it into column visualization.
Here is a good example to learn。
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 51 | |
| 42 | |
| 34 | |
| 33 | |
| 21 |
| User | Count |
|---|---|
| 143 | |
| 125 | |
| 100 | |
| 81 | |
| 63 |