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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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