Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
milindnikumbh
Creator
Creator

Set Analysis with multiple parameters

Dear Experts ,

Greetings !

I am not able to resolve set analysis using variable with multiple conditions.

=( Sum (
{ <
CYEAR={$(=Var2)},
 
PARAMETERS = {'TOTAL PRODUCTION'}
  > }
DIFFERENCE
 
)
) < 90

+

(
Sum (
{ <
CYEAR={$(=Var2)},
 
PARAMETERS = {'OVER ALL EQPT EFFECTIVENESS'}
  >}
DIFFERENCE
 
)
) < 90

Following is working fine without PARAMETER condition..

=Sum({$<CYEAR={$(=Var2)} > } DIFFERENCE ) < 90

Please help ..

Regards,

Milind.

1 Solution

Accepted Solutions
milindnikumbh
Creator
Creator
Author

Thanks Anil. We have resolve by using if statement ..

= ( if(PARAMETERS = 'TOTAL PRODUCTION' , ( Sum (
{ <
CYEAR={$(=Var2)}
  > }
DIFFERENCE
 
)
) < 90 ,0)

)
or
(
if(PARAMETERS = 'OVER ALL EQPT EFFECTIVENESS' ,
(
Sum (
{ <
CYEAR={$(=Var2)}
  >}
DIFFERENCE
 
)
) < 90 ,0)
)

View solution in original post

3 Replies
Anil_Babu_Samineni

QlikView is Case Sensitive, You should have written all correct values. Like

PARAMETERS

OVER ALL EQPT effectiveness

And You triend it as OVER ALL EQPT EFFECTIVENESS .. This won't work dues to Upper Case..

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

Thanks Anil. We have resolve by using if statement ..

= ( if(PARAMETERS = 'TOTAL PRODUCTION' , ( Sum (
{ <
CYEAR={$(=Var2)}
  > }
DIFFERENCE
 
)
) < 90 ,0)

)
or
(
if(PARAMETERS = 'OVER ALL EQPT EFFECTIVENESS' ,
(
Sum (
{ <
CYEAR={$(=Var2)}
  >}
DIFFERENCE
 
)
) < 90 ,0)
)

Anil_Babu_Samineni

If you are looking as you writtenn? I would prefer to use this as more efficient

=Alt((Sum({<CYEAR={$(=Var2)}, PARAMETERS = {'TOTAL PRODUCTION'}>+<CYEAR={$(=Var2)},
 
PARAMETERS = {'OVER ALL EQPT EFFECTIVENESS'}> }
DIFFERENCE)) < 90, 0)

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