Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis with Variable

Hi,

I have created a variable for date selection as below:

vPeriod = if(GetSelectedCount(Period) > 0 , GetFieldSelections(Period), '16/06/1980')
//if(GetSelectedCount(Period) > 0 , Concat(DISTINCT Chr(39) & Period & Chr(39), ', '), Chr(39) & '31/12/2003' & Chr(39))

And using the below expression

=Only({$<Draw={$(=Draw_EM)}, Period={">=$(=vPeriod)"}>} N1)

But when I select other selection then my Date variable does not work.

Can you please advise me related to this?

Kind regards,

Farrukh

13 Replies
Anonymous
Not applicable
Author

Thanks a mil sunny for highlighting the missing date on specific dates..

Is there any possibility that If I select Draw then from Period field can be Hide if there is no data and can only display to select the dates where the data is available.

Kind regards,

Farrukh

sunny_talwar

You can hide or you can select State as Auto Ascending

Capture.PNG

Anonymous
Not applicable
Author

Thanks a mil Sunny.

Anonymous
Not applicable
Author

Hi Youssef,

AR_ID is not a key value, the key Value is "CREATED" field. which is linked to master calendar.

Farrukh