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

Adding an aggr and separate value


Hello everyone,

I have an issue where I'm trying to add hours from several teams together, plus hours from one member of a different team.  I'm having trouble getting the correct string to make this happen.  This is my current string:

aggr(Sum({$<TeamOT={'Team A','Team B','Team C','Team D'}>} OTTotal), OTMoyr)

Team E has a member, Anna, that I need to include in the total hours above, but I can't figure out how to do that.  I don't need the rest of Team E, just Anna.  I have an EmpID field with all employee ID's, and I was trying to figure a way to use that in the string, but nothing I tried worked.

Any ideas would be greatly appreciated!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like:

Sum({$<TeamOT={'Team A','Team B','Team C','Team D'}>+<TeamOT={'E'},EmpID={'Anna0123'}>} OTTotal)


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Something like:

Sum({$<TeamOT={'Team A','Team B','Team C','Team D'}>+<TeamOT={'E'},EmpID={'Anna0123'}>} OTTotal)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Worked perfectly!  Thanks,Gysbert!