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
yatinpurohit
8 years agoHelper I
I have similar problem. But some columns (Response to Survey) are subjective response and the sentences may actually have a comma in them. If I use the comma delimiter solution, this will be a problem. Any suggestions?