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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ChannaK
Creator
Creator

Excluding filter selection not working with AGGR

Hi I have two expressions first case

i need ignore CalendarYearQuarter selection as filter below expression works fine

sum({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'},TableName ={'Stage1Date'}, Mapped={'AE OB'},[Type.Opportunity] ={'New business'},[POC_Opportunity.Opportunity]={'0'},[WOCRecord.Opportunity]={'0'}>} ImpliedRevenueP1)

 

in below case i am calculating % in denominator i need to use AGGR function this case it is not working any help?

sum({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'},TableName ={'Stage1Date'}, Mapped={'AE OB'},[Type.Opportunity] ={'New business'},[POC_Opportunity.Opportunity]={'0'},[WOCRecord.Opportunity]={'0'}>} ImpliedRevenueP1)
/
sum(aggr(max({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'}>} AE_TARGET),InitialQBRTeam_rep,InitialCreatedByUserName_Rep,StartDateQuarterName))

Labels (3)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

Hi, you also need to use set analysis in the external sum:

sum({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'}>} aggr(max({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'}>} AE_TARGET),InitialQBRTeam_rep,InitialCreatedByUserName_Rep,StartDateQuarterName))

View solution in original post

1 Reply
rubenmarin
MVP
MVP

Hi, you also need to use set analysis in the external sum:

sum({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'}>} aggr(max({$<CalendarYearQuarter =,StartDateQuarterName = {'$(=QuarterName(today()))'}>} AE_TARGET),InitialQBRTeam_rep,InitialCreatedByUserName_Rep,StartDateQuarterName))