Forum Discussion
IanErler
6 years agoRegular Visitor
Google Form Graph
Hello, I started with learning how to use Power BI recently. And I'm having trouble reconstruction a certain graph. I've used google forms for my survey and exported the data to a .xls file. There ...
- Anonymous6 years ago
Hi IanErler,
It seems like you are trying to expand all text string and get the detail count of each item, right? If this is the case, you can take a look at the following link about the similar requirements:
Occurrence of value (or) count value(text) in a columnNEW Table = VAR _path = SUBSTITUTE ( CONCATENATEX ( ALL ( 'Table'[Text] ), [Text], "," ), ",", "|" ) VAR _length = PATHLENGTH ( _path ) VAR _pathtable = ADDCOLUMNS ( GENERATESERIES ( 1, _length, 1 ), "Text", PATHITEM ( _path, [Value] ) ) RETURN ADDCOLUMNS ( SUMMARIZE ( _pathtable, [Text] ), "Count", COUNTROWS ( FILTER ( _pathtable, [Text] = EARLIER ( [Text] ) ) ) )Regards,
Xiaoxin Sheng
mahoneypat
6 years agoMicrosoft Employee
Since it is multi-select response and you are getting a comma-separated list of the responses, you can use the following steps to split them out into new rows:
- Rename the responses column to "Responses" (not required, just easier than the long title of your question)
- Add a custom column with this formula: = Text.Split([Responses], ", ")
- Click on the expand in the header for the new List column you created, and choose expand to new rows
- Write a simple measure to count the values in that column and make your visual
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat