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: 
Not applicable

Variable in Set Analysis

Hi Guys,

I have the following expression: sum({<PayRate={$(V_PayRate)}>Hours). What I want to do is create a between clause. So payrate is between v_payrate and some other variable expression I want to list. Currently it just says = v_payrate

Please help

Thanks,

Byron

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Byron,

The general rule for syntax is

Sum({< PayRate = {'>=$(vVariableFrom)<=$(vVariableTo)'} >} Hours)


Anyway, check this file to see how set analysis works with date ranges.

Hope that helps.

View solution in original post

3 Replies
Miguel_Angel_Baeyens

Hello Byron,

The general rule for syntax is

Sum({< PayRate = {'>=$(vVariableFrom)<=$(vVariableTo)'} >} Hours)


Anyway, check this file to see how set analysis works with date ranges.

Hope that helps.

gandalfgray
Specialist II
Specialist II

Hi Byron:

something like this

sum({<PayRate={">=$(vMinPayRate) <=$(vMaxPayRate)"} Hours)

Not applicable
Author

Thanks Gandalf... I see I can only mark 1 as correct now