Forum Discussion
Calculating percentage
- Anonymous9 years ago
Hi,
You could create a calculated column which does exactly what you said:
Converted = IF( ISBLANK( Table[How_many_0-5] ), BLANK(), IF( Table[How_many_0-5] = 0, "No", "Yes"))
Then you can create a measure:
Count = COUNTA( Table[Converted] )Or as a percentage:
Perc = COUNTA( Table[Converted] ) / Calculate( COUNTA(Table[Converted]), ALL(Table[Converted]) )
and make a bar chart of the converted column with values coming from one of the measures.
You may need to filter out the blank column from the visual if you don't want to see it on the bar chart. Unsure off the top of my head.
Hope this helps,
Will
Hi,
You could create a calculated column which does exactly what you said:
Converted = IF( ISBLANK( Table[How_many_0-5] ), BLANK(), IF( Table[How_many_0-5] = 0, "No", "Yes"))
Then you can create a measure:
Count = COUNTA( Table[Converted] )
Or as a percentage:
Perc = COUNTA( Table[Converted] ) / Calculate( COUNTA(Table[Converted]), ALL(Table[Converted]) )
and make a bar chart of the converted column with values coming from one of the measures.
You may need to filter out the blank column from the visual if you don't want to see it on the bar chart. Unsure off the top of my head.
Hope this helps,
Will
- kjartank9 years agoHelper II
This is beautiful! Thanks a lot! :)
- Anonymous9 years agoNot applicable
Fantsatic, glad I could help! :D