Forum Discussion
Double Headers on Matrix
- 3 years ago
Hi dejadpower
I think one potential option (although I suspect not the only solution) would be to split your single fact table into 2 (i.e. one for Opening and the other for Purchase). You can do this through Power Query.
You could then create a new column in each table with a standard Id (i.e. Opening = 1 and Purchase = 2), and add a dimension table with the Id and name which joins to these created columns.
Then you can add the dimension name column to the 'Columns' section of your matrix visual and any values or measures calculated for each table should fall under one of the headers.
Hope that helps.
Thanks , I'm new to powerbi, Can you please share how to split the table with power query
- BITomS3 years ago
Solution Supplier
First, you can duplicate the table query:
Then remove the Purchase related columns from one table and the Opening related columns from the other:
This gives you the 2 Fact tables.
- dejadpower3 years ago
Helper I
Thank you for your time, I'll try and update
"You could then create a new column in each table with a standard Id (i.e. Opening = 1 and Purchase = 2), and add a dimension table with the Id and name which joins to these created columns."
-- kindly clarify , should i add new column in both tables ?