Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a fact table like this:
And I want to end up with a matrix visual like this:
But I can't figure out how to do it.
I can't unpivot the fact table as some of the date columns are calculated columns.
I have a date table with 1 active and multiple inactive relationships to the fact table. This has calcuated columns indicating last week/prev week/last month/previous month.
I have tried creating measures on the fact table but I couldn't figure out how to include all the stages in a measure; which meant I had to create seperate matrix visuals for each stage. Also there would have to be 100 or so measures as there are a lot more stages than the example above. I have also tried summarised tables but again I couldn't get the right structure to populate a matrix visual.
Any tips appreciated.
Solved! Go to Solution.
HI , @RichardMo
According to your description, you want to group by your column , but your columns contains the calculated columns and can not be unpivoted.
For your need, i think the best way is used dax to unpivot your table.
My test data is like this:
We can click "New Table" and enter this:
For more information, you can refer to :
powerbi - Is it possible to unpivot in Power BI using DAX? - Stack Overflow
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
HI , @RichardMo
According to your description, you want to group by your column , but your columns contains the calculated columns and can not be unpivoted.
For your need, i think the best way is used dax to unpivot your table.
My test data is like this:
We can click "New Table" and enter this:
For more information, you can refer to :
powerbi - Is it possible to unpivot in Power BI using DAX? - Stack Overflow
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
68 | |
53 | |
39 | |
33 |
User | Count |
---|---|
70 | |
63 | |
57 | |
49 | |
46 |