Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
nurulizzaty
Contributor III
Contributor III

How to calculate percentage in qliksense?

 Hello experts, I want to calculate the percentage of Damage as below.

But the Damage is purely from Mode expression accident type. The percentage of Damage is 

= Total Accident Type / Total Incident Type * 100. 

 

How do i convert above calculations in qliksense? 

 

Plus, how do i display the most incident prone hours based only the highest accident type instead of mode for all accident type. 

Really need your help guys asap. Thanks in advance 🙂 

q1.png

Labels (2)
5 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

You can change the number format to percentage in the measure. Or do the following:

=Num(Total Accident Type / Total Incident Type,'#.#%')

The number of hashtags after the . specify the number of characters behind the dot.

Jordy

Climber

Work smarter, not harder
nurulizzaty
Contributor III
Contributor III
Author

why there is error when i try the expression you've suggested ya? 

jonathandienst
Partner - Champion III
Partner - Champion III

Enclose the field names in square brackets or quotes:

=Num([Total Accident Type] / [Total Incident Type], '#.#%', '.')
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
JordyWegman
Partner - Master
Partner - Master

I haven't put the brackets around your fields:

=Num([Total Accident Type] / [Total Incident Type],'#.#%')

Jordy

Climber 

Work smarter, not harder
nurulizzaty
Contributor III
Contributor III
Author

Thank you for correcting that. There is no error in that expression but the value cannot be displayed. I mean it doesn't calculate the number 😞