Forum Discussion
Google Form Graph
- 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
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 column
NEW 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
Anonymous
Thanks for posting this info. I used the information provided to create a new table. However is is not counting each unique occurance of each response, any ideas. Below are screen shots to elaborate.
Here is a sample of my data
When I filter to the specific response of "I need more info..." I see I have 32 rows with this response, some with additional responses.
But when I use the above Table measure, I get 11 responses for "I need more info...."
What can I do to get my table to count each unique instance.