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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
jrhuigsloot
Contributor
Contributor

compare period

Hi,

can someone help me to make the following data in the MasterCalendar but then from last year in QlikSense?

if(TempDate >= date(today()-7) and TempDate < date(today()), 1, 0) as SevenDays,

if(InMonth (TempDate, date(today()), 0), 1, 0) as CurrentMonth,

if(InYearToDate (TempDate, date(today()), 0), 1, 0) as YTD,

if(TempDate >= MonthStart(today()) and TempDate < date(today()), 1, 0) as MTD,

Thx!

Jacqueline

0 Replies