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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
jherrerae
Contributor
Contributor

KPI CY vs. PY

Hi all.

I'm trying to compare de number of POD's of any year vs. number of POD's of previous year.

But it doesn't work!!!

Any Year

=Count({$<Year={$(=Year(Fecha))}>}Viaje)

Previous Year:

=Count({$<Year={$(=(Year(Fecha)+1))}>}Viaje)

But the result is...

Captura.PNG

3 Replies
sunny_talwar

Previous year should be -1

=Count({$<Year={$(=(Year(Fecha)-1))}>}Viaje)

jherrerae
Contributor
Contributor
Author

Not, because "Fecha" is the date of the POD.

Anywey, Is the same result

sunny_talwar

Not sure I understand?