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 analysis '=' modifier

hi all,

 

in my model i have an table with the below expression :

sum({<Date={'$(vMaxInvDate)'},[Calendar.Month]=,[Calendar.Year]=,[Calendar.Quarter]=,HolidayFlag=,Holiday=>} quantity)

when user select year 2020 it retrieves the  correct value regardless the selection of Month, Quarter ...

problem is when selected year is 2019\2018 and Month\ Quarter - calculation retrieves 0 unless unselect Month\Quarter

so the modifier '=' works only with current year 

 

any ideas ??

advanced thanks

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar

May be you need to ignore selection in your year, month, quarter fields within this expression also? Can you try this

=Date(Max({1} max_inv_date))

View solution in original post

6 Replies
sunny_talwar

How do you define $(vMaxInvDate) variable? Is this an expression based variable or hard coded?

ilanbaruch
Specialist
Specialist
Author

expression based :

=date(Max(max_inv_date))

sunny_talwar

May be you need to ignore selection in your year, month, quarter fields within this expression also? Can you try this

=Date(Max({1} max_inv_date))

ilanbaruch
Specialist
Specialist
Author

Within the variable expression?
sunny_talwar

yes

ilanbaruch
Specialist
Specialist
Author

thank you