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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
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
MVP
MVP

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
MVP
MVP

Not sure I understand?