Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Maciej29
Contributor III
Contributor III

Would like to see only data from 2019 to today's date

Hello,

I'd like to see only data from 2019 to today's date using Set expression.

 

Date Created

1/12/2015

06/03/2016

12/31/2018

05/05/2019

1/12/2020

 

Thanks in advance

2 Solutions

Accepted Solutions
Anil_Babu_Samineni

When you say set expression, It is difficult to us to understand where you are using?

Dimension Level : If(Year([Date Created])>=2019, [Date Created])

Using Expression : Sum(If(Year([Date Created]>=2019, Measure))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

tresesco
MVP
MVP

Try something like:

Sum( {<[Date Created]={">=MakeDate(2019,1) <= today()"}>} Sales)

View solution in original post

3 Replies
Anil_Babu_Samineni

When you say set expression, It is difficult to us to understand where you are using?

Dimension Level : If(Year([Date Created])>=2019, [Date Created])

Using Expression : Sum(If(Year([Date Created]>=2019, Measure))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

Try something like:

Sum( {<[Date Created]={">=MakeDate(2019,1) <= today()"}>} Sales)

Maciej29
Contributor III
Contributor III
Author

Anil,

I need both.

Thank you