cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
marshala Frequent Visitor
Frequent Visitor

Plot columns with multiple values

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 IDNatural HazardFireClimateChangeEconomic shockViolenceEpidemic
62      
63Natural Hzard Climate ChangeEconomic shock  
76      
148Natural Hzard     
155      
162      
168 FireClimate Change   
175      
197 FireClimate ChangeEconomic shock  
213      
221      
233  Climate ChangeEconomic shock Epidemic
234  Climate Change ViolenceEpidemic
236  Climate ChangeEconomic shockViolence 
257Natural HzardFire    
267Natural Hzard Climate ChangeEconomic shockViolence 
275      
286      
296Natural HzardFireClimate ChangeEconomic shock  
300      
309Natural HzardFireClimate 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

1 ACCEPTED SOLUTION

Accepted Solutions
bwsutton1990 Frequent Visitor
Frequent Visitor

Re: Plot columns with multiple values

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

1 REPLY 1
bwsutton1990 Frequent Visitor
Frequent Visitor

Re: Plot columns with multiple values

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