Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have below P&L table on the left and i'd like to transpose and format it same way as the table on the righ. I created a matrix table Iand transpose data however it doesnt split the data between 2020 and 2021 . Is there a workaround splitting data between 2020 and 2021 and include as column header.
Solved! Go to Solution.
@dokat The table on the left looks good from a database persepective, just add a column in Power Query that turns Calendar Year into a date (Jan 1, Calendar Year is easy). Then you can relate to a DimDate table and use TimeIntelligence.
Excel with Allison: DimDate: What, Why and How?
Alternatively you could just put Calendar Year in the Columns of your matrix and P&L in the rows and Values in Values and no transposing is needed.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@dokat The table on the left looks good from a database persepective, just add a column in Power Query that turns Calendar Year into a date (Jan 1, Calendar Year is easy). Then you can relate to a DimDate table and use TimeIntelligence.
Excel with Allison: DimDate: What, Why and How?
Alternatively you could just put Calendar Year in the Columns of your matrix and P&L in the rows and Values in Values and no transposing is needed.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
that worked, i uploaded calendar year table and drop it under column and it worked.
Thanks
User | Count |
---|---|
78 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
51 | |
50 | |
48 |