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: 
sat_tok52
Creator
Creator

Current YTD/Last Year YTD

Hi Guru's,

I have to calculate Current YTD /Last Year YTD  to till date it means

Current Year YTD(From Jan-01-2016 to Today) / Last Year YTD( Jan-01-2015 Last Year Same Day).I have used Some Qlikview Function it's Working but my chart is displaying total 12 month,I don't want like that .Below is my Expression

(Count({<Trade={'All'},Date={'>=$(=YearStart(Today()))<=$(=Today())'}>}Id)

/Count({<Trade={'All'},Date={'>=$(=YearStart(Today(),-1))<=$(=Today())'}>}Id)-1

Thanks,

Sateesh.T

1 Solution
3 Replies
MK_QSL
MVP
MVP

Provide some more information

Anonymous
Not applicable

Hi

Try this,

Current Year to Date: Date={'>=$(Date(YearStart(Today())))<=$(max(Date))'}.

Last year to Date :try this link to get last year same day

Last year sameday