Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
WiscoSippi
Creator
Creator

New to Set Analysis - Expression failing

Here's the expression:

sum($(vPeriodCurrentMonth),{$<[LTC Type] = e({<[LTC Type]={' '}>} [LTC Type])>} [Prod Lbr Hrs])

Modifier 1 = $(vPeriodCurrentMonth)

Modifier 2 = {$<[LTC Type] = e({<[LTC Type]={' '}>} [LTC Type])>}

I've verified that each modifier works independently but they wont work together. Any help on how to get them to work together would be appreciated!

Thanks!

Ben

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry
1 Solution

Accepted Solutions
sunny_talwar

Try this:

Sum({$<[Fiscal Period Counter Month] = {"$(=max([Fiscal Period Counter Month]))"}, [LTC Type] = e({<[LTC Type]={' '}>} [LTC Type])>} [Prod Lbr Hrs])

View solution in original post

4 Replies
sunny_talwar

How is $(vPeriodCurrentMonth) defined?

WiscoSippi
Creator
Creator
Author

Updated with actual definition:

{<
[Fiscal Period Counter Month] = {"$(=max([Fiscal Period Counter Month]))"}
>}
“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry
sunny_talwar

Try this:

Sum({$<[Fiscal Period Counter Month] = {"$(=max([Fiscal Period Counter Month]))"}, [LTC Type] = e({<[LTC Type]={' '}>} [LTC Type])>} [Prod Lbr Hrs])

WiscoSippi
Creator
Creator
Author

I had to modify it to this:

Sum({$<[Fiscal Period Counter Month] = {$(=max([Fiscal Period Counter Month]))}, [LTC Type] = e({<[LTC Type]={' '}>} [LTC Type])>} [Prod Lbr Hrs])

basically, just removed the quotes around =max and then had to relink the field names. Thanks!

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry