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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

OR mode for calendar slider

Dear Gurus,

I facing issue in OR mode for calendar slider, attached the app, where I need to get ‘T Or M Dates” when my selection is

TDate: 5-11-2012 to 30-11-2012

MDate: 1-11-2012 to 2-11-2012

I have to get OR mode and data should be for Date: 5-11-2012 to 30-11-2012 OR MDate: 1-11-2012 to 2-11-2012

1 Solution

Accepted Solutions
Not applicable
Author

Thanks a lot Prem and Michael,

Unfortunately i cannot use both the solution, However i resolved this issue with if condtion in the dimension of the chart and ticked "Suppress When Value is null"

 

if(
if(TDate >=vMinTDate
and TDate <= vMaxTDate,1,0)+
if(MDate >=vMinMDate and MDate <= vMaxMDate,1,0) >= 1 ,

1)

View solution in original post

3 Replies
preminqlik
Specialist II
Specialist II

Hi there once try this

='>=' & Date(vMinMDate, 'DD/MM/YYYY') &  ' or ' & '<=' & Date(vMaxMDate, 'DD/MM/YYYY')

Anonymous
Not applicable
Author

See attached.

I added one more field, ID, unique per data row, and I"m making selection in this field rather than in TDate and MDate.  Using Toggle Select with the search string

='(' &

concat({<TDate={"$(='>=' & Date(vMinTDate, 'DD/MM/YYYY') & '<=' & Date(vMaxTDate, 'DD/MM/YYYY'))"}>

+ <MDate={"$(='>=' & Date(vMinMDate, 'DD/MM/YYYY') & '<=' & Date(vMaxMDate, 'DD/MM/YYYY'))"}>} distinct ID

, '|')

& ')'

Regards,

Michael

Not applicable
Author

Thanks a lot Prem and Michael,

Unfortunately i cannot use both the solution, However i resolved this issue with if condtion in the dimension of the chart and ticked "Suppress When Value is null"

 

if(
if(TDate >=vMinTDate
and TDate <= vMaxTDate,1,0)+
if(MDate >=vMinMDate and MDate <= vMaxMDate,1,0) >= 1 ,

1)