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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
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