Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Set analysis

HI All ,

Iam trying to include the below expression into set analysis but its not executing

Can the expertise please help me ..

count(if(IsNull(Closed), Resolved,Closed)   This expression needs to be included in the below set analysis...

This says count of closed in if closed are null the count Resolved ...now the requirement is to pass certain fields ..therefore iam trying the below expression .

                                                                                     

=if(if(count({<Class={'Class 1','Class 2'},Dys={"=Days >=0 and Days <=7"}>} isnull(Closed),Resolved,Closed)<>0,Green(),Red()))

Thanks in advance

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Not really sure, but maybe

=if(

     count({<Class={'Class 1','Class 2'},Dys={"=Days >=0 and Days <=7"}>}

          if( isnull(Closed),Resolved,Closed)

     )

     <>0,Green(),Red()

)

View solution in original post

11 Replies
swuehl
MVP
MVP

Not really sure, but maybe

=if(

     count({<Class={'Class 1','Class 2'},Dys={"=Days >=0 and Days <=7"}>}

          if( isnull(Closed),Resolved,Closed)

     )

     <>0,Green(),Red()

)

Chanty4u
MVP
MVP

try this

=if(if(count({<Class={'Class 1','Class 2'},Closed={' '},Dys={"=Days >=0 and Days <=7"}>} Resolved,Closed)<>0,Green(),Red()))

smilingjohn
Specialist
Specialist
Author

Hi CHanty this is giving the error

Chanty4u
MVP
MVP

waht error your getting?

smilingjohn
Specialist
Specialist
Author

Error in epression , a red mark after closed <>0

smilingjohn
Specialist
Specialist
Author

it says error in expression

Chanty4u
MVP
MVP

can you share the screen shot of it?

Anil_Babu_Samineni

Try this first alone and check how it returns?

If(count({<Class={'Class 1','Class 2'},Days={"=Days >=0 and Days <=7"}>} Closed) <> 0,Green(),Red())

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
andrei_delta
Partner - Creator III
Partner - Creator III

Hello,

you misspelled the field Days.

From your code: Dys={"=Days >=0 and Days <=7"}>}


Hope it helped,

Andrei