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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vikasmahajan

Set analysis count & if with multiple conditions

Dear all

I have following expression

=if(GetSelectedCount($(vInititiavtiveHost)) = 0  or count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0,0,1)

addtional  I want to give  OR condition again  or count({<$(vInititiavtiveStatus) = {'Completed', 'Executing'}


how to write the correct expression.


Thanks in advance

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
1 Solution

Accepted Solutions
sunny_talwar

Still not sure, but may be this:

=If(GetSelectedCount($(vInititiavtiveHost)) = 0  or Count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>+<$(vInititiavtiveStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0,0,1)

Just out of curiosity you have variable on the left hand side of your set modifier, that is working well for you?

=If(GetSelectedCount($(vInititiavtiveHost)) = 0  or Count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>+<$(vInititiavtiveStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0,0,1)

View solution in original post

10 Replies
sunny_talwar

Where exactly are you trying to add this new condition?

sathishkumar_go
Partner - Specialist
Partner - Specialist

=if(GetSelectedCount($(vInititiavtiveHost)) = 0  or count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0 or count({<$(vInititiavtiveStatus) = {'Completed', 'Executing'}>} > 0,0,1)

-Sathish

vikasmahajan
Author

count({<$(vInititiavtiveStatus) = {'Completed', 'Executing'}   this part  i want to add in expression with OR condition

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Anonymous
Not applicable

count({<field name={value}>}field name) given the expression

vikasmahajan
Author

Satish Thanks this i try already but getting error

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
sunny_talwar

Still not sure, but may be this:

=If(GetSelectedCount($(vInititiavtiveHost)) = 0  or Count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>+<$(vInititiavtiveStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0,0,1)

Just out of curiosity you have variable on the left hand side of your set modifier, that is working well for you?

=If(GetSelectedCount($(vInititiavtiveHost)) = 0  or Count({<$(vInititiavtiveUpdateStatus) = {'Completed', 'Executing'}>+<$(vInititiavtiveStatus) = {'Completed', 'Executing'}>} (vInititiavtiveHost)) > 0,0,1)

vikasmahajan
Author

First worked Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
sunny_talwar

Both are the same expressions. 2nd expression was a question for you

sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi,

Attach ur application.

-Sathish