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: 
YanMin
Contributor III
Contributor III

rank for previous YTD

Hi, 

Is there anyway that I can get rank based on the previous YTD? I try this code but doesn't show me correctly.

 

num(rank(sum({<TRANSACTION_FLAG={'CAR_REGN'},Var_Date ={">=$(vPrevYearStartCarRegn) <=$(vPrevYrSameMonthCarRegn)"},FCST_VERSION=>}Quantity)))

where vPrevYearStartCarRegn= first day of previous year

vPrevYrSameMonthCarRegn = current day of previous year.

 

but didnt give me correct rank.

Can anyone assist thanks in advanced.

0 Replies