Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Ankit3
Contributor II
Contributor II

How to add conditional flags in Qlik Sense KPI Charts ?

Hi All,

My requirement is to show  ▲ arrow when Sales Growth is >5000 else  ▼ arrow.

Please guide how to achieve this.

Thanks

Labels (1)
2 Replies
KGalloway
Creator II
Creator II

It will depend on what calculation you use to get Sales Growth. For my example, I assume a simple sum:

if(sum([Sales Growth]) > 5000, sum([Sales Growth]) & ' ▲', sum([Sales Growth]) & '  ▼')

This would show the following for a Sales Growth value of 5237:

5273 ▲

and it would show the following for a value of 4222:

4222 ▼

vinieme12
Champion III
Champion III

I would suggest using the expression shared by @KGalloway  but encapsulating it in Dual() as  below

 

=Dual ( Num(sum([Sales Growth]),'#,##0') & if(sum([Sales Growth]) > 5000,' ▲', '  ▼') ,  sum([Sales Growth]) )

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.