Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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?