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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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

Labels (1)
1 Solution

Accepted Solutions
bindu_apte
Specialist
Specialist

3 Replies
MK_QSL
MVP
MVP

Provide some more information

bindu_apte
Specialist
Specialist

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