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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

KPI

If I have revenue in one of my KPI's, how do I add a little indicator of its revenue vs last year? For example, lets say revenue was $100 this year and last year was $50, so my KPI for this year would have a little green arrow with the percentage of how much it went up (200%) according to the previous year. Please let me know if this is possible.

Thank You!

3 Replies
brunobertels
Master
Master

Hi

In Qlik Sense you can use a KPI Object

Add your mesure for current year revenue

maybe something like this to get the max year available

Sum({$<Date={$(=max(year(Date)))}>}revenue)

To get the % versus last year

add a second mesure like this

Sum({$<Date={$(=max(year(Date)))}>}revenue) / Sum({$<Date={$(=max(year(Date)-1))}>}revenue)

select format as personalized

model format :

add this format : ▲  ###0,0%;▼  ###0,0%

color by expression :

if(

Sum({$<Date={$(=max(year(Date)))}>}revenue) / Sum({$<Date={$(=max(year(Date)-1))}>}revenue)>0,rgb(0, 255, 110),rgb(255, 0, 34))


hope it helps


Bruno


Anonymous
Not applicable
Author

Hi Bruno,

Can you help me with the 'versus last years revenue' percentage formula? My year is 'Fiscal Year' and Revenue is 'Revenue'

Thanks,

Shanace

brunobertels
Master
Master

may be this :

Sum({$<Date={$(=max(year([Fiscal Year])))}>}Revenue) / Sum({$<Date={$(=max(year([Fiscal Year])-1))}>}Revenue)


color :

if(

Sum({$<Date={$(=max(year([Fiscal Year])))}>}Revenue) / Sum({$<Date={$(=max(year([Fiscal Year])-1))}>}Revenue)>0,rgb(0, 255, 110),rgb(255, 0, 34))