Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Our May 2021 end-to-end product release from Data Integration to Data Analytics is out! READ DETAILS
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))

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

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))

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

View solution in original post

tresesco
MVP
MVP

Try something like:

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

View solution in original post

Maciej29
Contributor III
Contributor III
Author

Anil,

I need both.

Thank you