Forum Discussion
shugs
9 years agoRegular Visitor
Multiple choices answer count
Hi, I'm new to Power BI and I can't figure out how to count the number of occurence of each answer from a multiple choice sharepoint form : I have : Project ¦ Choice ...
- 9 years ago
Hi shugs,
If you data is in that format you present first of all you need to change you information format.
Go to the query editor and do the following steps:
- Choose column Choice
- Transform -> Split column -> By Delimeter
- Choose the comma as your delimeter
- Now you have a table with Project and one column per response
- Choose all the columns besides the project
- Transform -> Unpivot Columns
- Return a table with: Project, Attribute, Value
- Delete column Attribute
- Rename Value to your choice
- Save and return to PBI desktop
Now just add you Value to the table visual and the Project (this should be count)
Regards,
MFelix
Sean
9 years agoCommunity Champion
Undoutbtedly you have other columns in that table - so duplicate the table first in the Query Editor
Here's a link to a similar question
http://community.powerbi.com/t5/Desktop/Data-modeling-question/m-p/135326#M57957
Plus the image