Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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?