Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator III
Creator III

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 II
Champion II

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 III
Creator III
Author

Hi Sunil,

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

surajap123
Creator III
Creator III
Author

Thanks everyone for your support !!