Forum Discussion

PowerBIPilgrim's avatar
5 years ago
Solved

Pivot? Column to a Row

Hi All,

 

I have a fact table, that contains the following columns:

Month/Year
Count of A
Count of B
Count of C
...

Brand

 

Month/Year is a Date column, joined to my Calendar. Brand is an integer joined to my Brand dimenson and Count of A, B C etc. are all just integers

 

I have a product dimension, which isn't currently joined to the above Fact table (since it's the column names that match to the dimension table).

 

I'm trying to get a Matrix table, that looks like this:
Date
month/year 1 | month/year 2 | month/year 3 etc.
A 20 | 22 | 23 
B  100 | 90 | 101
C 30 | 40 | 35

 

I've got measures for summing the columns, but I'm not sure how to pivot? them into the Rows in the Matrix.

3 Replies