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

if condition

Hi All,

In my existing if condition, i want to display only field(ID) value greater than 10. Below is the expression i am using and i want to modify it to show values >10.

count(if(

  (FromDate >= Weekstart and FromDate <= Weekend) or

  (ToDate >= Weekstart and ToDate <= Weekend) or

  (FromDate <= Weekstart and ToDate >= Weekstart) or

  (FromDate <= Weekend and ToDate >= Weekend) , ID))

12 Replies
SunilChauhan
Champion
Champion

try this in expression

if(count(if(

  (FromDate >= Weekstart and FromDate <= Weekend) or

  (ToDate >= Weekstart and ToDate <= Weekend) or

  (FromDate <= Weekstart and ToDate >= Weekstart) or

  (FromDate <= Weekend and ToDate >= Weekend) , ID))>10,

count(if(

  (FromDate >= Weekstart and FromDate <= Weekend) or

  (ToDate >= Weekstart and ToDate <= Weekend) or

  (FromDate <= Weekstart and ToDate >= Weekstart) or

  (FromDate <= Weekend and ToDate >= Weekend) , ID)))

Sunil Chauhan
surajap123
Creator II
Creator II
Author

Hi Sunil,

This expression is working. I will test it in my main dashboard and come back by evening. Thanks !!

surajap123
Creator II
Creator II
Author

Thanks everyone for your support !!