Forum Discussion
Multiple choices answer count
- 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
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
Hi,
This worked for me, thanks a lot!
But just to add - I worked with a data including more columns than the Project and Choice columns, and the Unpivot Columns solution removes the records with empty Choice column. So it's good to create a new table containing only the Project and Choice columns to avoid losing data.