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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
danny4202001
Contributor II
Contributor II

Where Condition

hello friends,

How to change the below where condition if we need data starting last week to future infinite everything available in the source 

 

Weekstartdate = WeekStart(Now(),-1,0)

 

Thanks,

D

Labels (1)
2 Solutions

Accepted Solutions
QFabian
MVP
MVP

Hi @danny4202001 maybe this :

Where

datefield  >= today()-7

Weekstartdate = WeekStart(Now(),-1,0)

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.

View solution in original post

danny4202001
Contributor II
Contributor II
Author

Hello Fabian, 

Thank you for the reply, What if you need data from YTD?

Thanks

 

 

View solution in original post

3 Replies
QFabian
MVP
MVP

Hi @danny4202001 maybe this :

Where

datefield  >= today()-7

Weekstartdate = WeekStart(Now(),-1,0)

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
danny4202001
Contributor II
Contributor II
Author

Hello Fabian, 

Thank you for the reply, What if you need data from YTD?

Thanks

 

 

QFabian
MVP
MVP

datefield  >= yearstart(today())

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/DateAndTimeFun...

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.