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

How to show variable when WeekFlag is 1

Hi there,

I want to show vWeekStart as 27/9/2021 and vWeekEnd as 3/10/2021 without any selection from the table below.

when the app is open....

How to show the vWeekStart when the WeekFlag is 1.

Flag.PNG

1 Solution

Accepted Solutions
NageshSG
Partner - Contributor III
Partner - Contributor III

Hi @ashmitp869 

You can set the variable expression as under:

vWeekStart=Max({$<WeekFlag={1}>}MDateWeekStart)
vWeekEnd=Max({$<WeekFlag={1}>}MDateWeekEnd)

Additionally, In case you want to ignore the user selection of the dates in the front end, replace the '$' above with '1' as the identifier inside the set expression above.

 

 

View solution in original post

2 Replies
MayilVahanan

HI 

Try like below

vWeekStart  = Date(Min({<WeekFlag ={1}>}MDate))

vWeekEnd = Date(Max({<WeekFlag ={1}>}MDate))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
NageshSG
Partner - Contributor III
Partner - Contributor III

Hi @ashmitp869 

You can set the variable expression as under:

vWeekStart=Max({$<WeekFlag={1}>}MDateWeekStart)
vWeekEnd=Max({$<WeekFlag={1}>}MDateWeekEnd)

Additionally, In case you want to ignore the user selection of the dates in the front end, replace the '$' above with '1' as the identifier inside the set expression above.