Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RaquelFQSpain
Contributor II
Contributor II

Chart with percentage

Hi,

I have a chart, with dimension: ValueList('Vida','Coche')

and measure:

If (ValueList('Vida','Coche')='Vida',(Count([ID])/Count(total [ID])), If (ValueList('Vida','Coche')='Coche',(Count([ID])/Count(total [ID]))))

I don´t get any error, but I didn´t get the correct results, and also I need in percentage.

RaquelFQSpain_0-1617481155185.png

IDPROVINCIACOCHEMOTOHOGARSALUDDENTALVIDAACCIDENTES
2BarcelonaCoche Hogar    
3Zaragoza  Hogar    
5MadridCocheMoto Salud   
15SevillaCoche HogarSalud  Accidentes
16Madrid  Hogar Dental  
26A CoruñaCoche Hogar    
39Las PalmasCoche      
40MadridCocheMotoHogarSalud   
60Barcelona  Hogar    
62MadridCoche      
68MadridCoche Hogar  Vida 
89MadridCoche Hogar  Vida 
104Madrid  Hogar    
117ValenciaCoche Hogar Dental Accidentes

 

Thanks!

2 Solutions

Accepted Solutions
joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @RaquelFQSpain !

    I think you can try this formula

If (ValueList('Vida','Coche')='Vida',(Count({<VIDA-={"-"}>}[ID])/Count(total [ID])), 
If (ValueList('Vida','Coche')='Coche',(Count({<COCHE-={"-"}>}[ID])/Count(total [ID]))))

  

joaopaulo_delco_0-1617498080454.png

 

 

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

RaquelFQSpain
Contributor II
Contributor II
Author

Thank you so much!!!!!

View solution in original post

3 Replies
joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @RaquelFQSpain !

    I think you can try this formula

If (ValueList('Vida','Coche')='Vida',(Count({<VIDA-={"-"}>}[ID])/Count(total [ID])), 
If (ValueList('Vida','Coche')='Coche',(Count({<COCHE-={"-"}>}[ID])/Count(total [ID]))))

  

joaopaulo_delco_0-1617498080454.png

 

 

Help users find answers! Don't forget to mark a solution that worked for you!
RaquelFQSpain
Contributor II
Contributor II
Author

Thank you so much!!!!!

joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @RaquelFQSpain !

   I think you mark as solution the wrong post.

Help users find answers! Don't forget to mark a solution that worked for you!