Forum Discussion
fiorela
6 years agoHelper I
how to summarize data, count category variable
Hi all, I have this type of table in my powerbi Desktop: Type1 Type2 Type3 type4 intermediate Intermediate Advanced Awareness N...
- 6 years ago
fiorela solution attached, look at table(2), lot of heavy lifting is done in power query
- added index column
- unpivoted the table
and then everything was very easy
- 6 years ago
Hi,
In the Query Editor, add an Index column. Click on the Index heading and select "Unpivot Other olumns". Build a matrix visual and drag Attribute to the row labels. Drag the 3rd column to the column labels. Write this measure
=COUNTROWS(Data)
Hope this helps.
parry2k
6 years agoSuper User
fiorela solution attached, look at table(2), lot of heavy lifting is done in power query
- added index column
- unpivoted the table
and then everything was very easy
fiorela
6 years agoHelper I
many thanks!! it works
- Ashish_Mathur6 years agoSuper User
You are welcome.