Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis help

HI i need help on set analysis in the below expression.

Sum({$<Year={$(=max(Year))},MTDYTD = {'MTD'},HR_MONTH ={$(=max(HR_MONTH))},HR_Month1=>} HR01_ACTIVEEMPLOYEE + HR01_TEMPRYEMPLOYEE*Emp_Value).

For HR_MONTH i want to write

HR_MONTH Betwen 1 and MAX(HR_MONTH)

Thanks

7 Replies
robert_mika
Master III
Master III

Not applicable
Author

Hi

Please provide the specific scenario to get the exact result for above issue

thanks

Anonymous
Not applicable
Author

Hi

thanks for the reply !!

i need hr_month should get data only betweeen 1 and max(hr_month)

Thanks

vvvvvvizard
Partner - Specialist
Partner - Specialist

hr_month = {'>= 1 < $(=max(hr_month))'}


or


hr_month = {'>= 1 < $(=max(num(hr_month)))'}

nirav_bhimani
Partner - Specialist
Partner - Specialist

try this condition in your current one

HR_MONTH ={">=$(=min(HR_MONTH))<=$(=max(HR_MONTH))"}

Regards,

Nirav Bhimani

Not applicable
Author

Sum({$<Year = {$(=max(Year))}, MTDYTD = {'MTD'}, HR_MONTH = {$(=max(HR_MONTH))},

HR_Month1 = {">=1<= max(HR_MONTH)"}>} HR01_ACTIVEEMPLOYEE + HR01_TEMPRYEMPLOYEE*Emp_Value)

Not applicable
Author

Hi rgv,

can HR_MONTH actually be less than 1? From the sound of it I would think not so all you would need is a less than/equal to max. Keeps the expression simpler

HR_MONTH ={"<=$(=max(HR_MONTH))"}

hope that helps

Joe