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: 
HAmzehAF
Partner - Creator
Partner - Creator

data load

hello,

how to fix this to take 30 days before for any date i pick in the sheet?

IF(Date = Date(Today() - 30), 1, 0) AS Is30DaysAgo,
this only take it for today and going back 30 days and if  i pick a date from the sheet i get 0 


Labels (5)
1 Reply
Aditya_Chitale
Specialist
Specialist

if you want to go back 30 days on basis of selected date, try getfieldselections() instead of today()

=IF(Date = Date(getfieldselections() - 30), 1, 0)

 

Regards,

Aditya