We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi
I have a load of survey data, some of the questions were multi-select responses which I need to visualise. The data looks like this
| Response ID | Natural Hazard | Fire | ClimateChange | Economic shock | Violence | Epidemic |
| 62 | ||||||
| 63 | Natural Hzard | Climate Change | Economic shock | |||
| 76 | ||||||
| 148 | Natural Hzard | |||||
| 155 | ||||||
| 162 | ||||||
| 168 | Fire | Climate Change | ||||
| 175 | ||||||
| 197 | Fire | Climate Change | Economic shock | |||
| 213 | ||||||
| 221 | ||||||
| 233 | Climate Change | Economic shock | Epidemic | |||
| 234 | Climate Change | Violence | Epidemic | |||
| 236 | Climate Change | Economic shock | Violence | |||
| 257 | Natural Hzard | Fire | ||||
| 267 | Natural Hzard | Climate Change | Economic shock | Violence | ||
| 275 | ||||||
| 286 | ||||||
| 296 | Natural Hzard | Fire | Climate Change | Economic shock | ||
| 300 | ||||||
| 309 | Natural Hzard | Fire | Climate Change | |||
I want to produce a colum chart that shows a count for each response. So the x axis woould have Natural Hazard, Fire, Climate Change, Economic Shock, Violence and Epidemic and the y axis would be a count value, but I cannot work out how to do this. Help please!
Thanks
A
Solved! Go to Solution.
Hi
How are you looking to present the data?
If you are simply looking to represent each one selected with a count you can create seperate measures for each type as follows:
Natural Hazard Count = CALCULATE( DISTINCTCOUNT([Response ID]), FILTER(Table, [Natural Hazard] = "Natural Hazard") )
However, if you are looking to combine these, you are best transposing the data in the query editor.
Hope that helps.
Thanks
Hi
How are you looking to present the data?
If you are simply looking to represent each one selected with a count you can create seperate measures for each type as follows:
Natural Hazard Count = CALCULATE( DISTINCTCOUNT([Response ID]), FILTER(Table, [Natural Hazard] = "Natural Hazard") )
However, if you are looking to combine these, you are best transposing the data in the query editor.
Hope that helps.
Thanks
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 38 | |
| 34 | |
| 23 |