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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
blunckc1
Creator
Creator

Set analysis help


Hi everyone,

I'm still getting my head around set analysis and I found the following set analysis expression which works great.

Sum({<MonthYear ={">=$(=date(addmonths(date#('$(vYearMonth)','MMM-YYYY'),-11),'MMM-YYYY')) <=$(=date#('$(vYearMonth)','MMM-YYYY'))"}, Year=,Month=>} Hours)

I need to however add another modifier to this and I have no clue how or where!  The modifier that needs to be added is bolded in this much more straight forward set analysis expression.

Sum({$<[Payment Type Category]={'Overtime'}>}Hours).

Can you someone please point me in the right direction?

Thank you!!

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

Try

Sum({$<MonthYear ={">=$(=date(addmonths(date#('$(vYearMonth)','MMM-YYYY'),-11),'MMM-YYYY')) <=$(=date#('$(vYearMonth)','MMM-YYYY'))"}, Year=,Month=,[Payment Type Category]={'Overtime'}>} Hours)

View solution in original post

2 Replies
shraddha_g
Partner - Master III
Partner - Master III

Try

Sum({$<MonthYear ={">=$(=date(addmonths(date#('$(vYearMonth)','MMM-YYYY'),-11),'MMM-YYYY')) <=$(=date#('$(vYearMonth)','MMM-YYYY'))"}, Year=,Month=,[Payment Type Category]={'Overtime'}>} Hours)

blunckc1
Creator
Creator
Author

Mate, cheers the quick response.  Seems to work.  Legend.