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: 
rpavan17
Creator
Creator

Convert this sum aggr if expression to sum with set analysis aggr

Hi,

 

Can anyone help to convert this formula to set analysis expression?

Date_Clearing, Date_Posting and Month_End are in 'DD-MM-YYYY' format.

sum(aggr(if(sum(if(((IsNull(Date_Cl) AND Date_Pos <= Month_End ) OR (Date_Pos <= Month_End AND  Date_Cl > Month_End)) and SAP_TC='FBL1N' and trim(SP_GL)='' ,Amount_LOC,0))>0,

sum(if(((IsNull(Date_Cl) AND Date_Pos <= Month_End ) OR (Date_Pos <= Month_End AND  Date_Cl > Month_End)) and SAP_TC='FBL1N'and trim(SP_GL)='',

Amount_LOC,0)),0),VendorCC,Month_End))

 

Thanks

Labels (2)
2 Replies
alex00321
Creator II
Creator II

Hi can you provide sample data maybe and also expected result? Thanks!

Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog post, believe it may be of some help on this issue:

https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.