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

set analisys with dates

hi all,

 

in my model i have two dates one is used for the master calendar (Date)

and the second is a transaction reference date (ValueDate)

i want an expression that ignores Date Field, and calculates by all smaller ValueDate 's from possible Date

i.e when model's data set include year 2018, and user selected April-18, calculation should include Jan-18 to Apr-18

 

advanced thanks

Labels (3)
1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi 

it should be something like 

sum({<Date,ValueDate={"<=$(=max(Date))"}>}Sales)

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi 

it should be something like 

sum({<Date,ValueDate={"<=$(=max(Date))"}>}Sales)

ilanbaruch
Specialist
Specialist
Author

Thank you Liron!
my final :
sum({$<Date=, ValueDate= {"<=$(vPossibleDates)"} > } Sales)
vPossibleDates=Date(max(ValueDate))