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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
MIKIEMILLER
Contributor III
Contributor III

Finding Thanksgiving

So I have a column "Date" going back 20 years, I need to find a formula that will identify the 4th Thursday of November as Thanksgiving

 

 

Labels (1)
1 Reply
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

It depends a bit on the context in which you use it.  If you had a chart with a Year dimension, a measure like this would return the Thanksgiving date for each Year:

aggr(nodistinct min({<Date={"=Weekday(Date)=4 and Month(Date)=11"}>}Date, 4), Year)

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com