Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sona_sa
Creator II
Creator II

Aggr Expression

Hi,

What is wrong in this expression :

=Aggr(Sum( If(MonthEnd(Link_Date)=Monthend(DOJ),YearlyValue)),EmpCode)

I want sum of salary of EMPCODE, Who has joined in End of That Month DOJ wise.

Thanks.

4 Replies
lironbaram
Partner - Master III
Partner - Master III

the expression above returns a virtual table 
of empcode and the expression value 
If you want to get the total number you need to wrap it by another sum function

MayilVahanan

Hi Sona,

Try like below

=Sum(Aggr(Sum( If(MonthEnd(Link_Date)=Monthend(DOJ),YearlyValue)),EmpCode))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sona_sa
Creator II
Creator II
Author

Thanks. Working.

Can we convert the same to Set Analysis.

=Sum(Aggr(Sum( If(MonthEnd(Link_Date)=Monthend(DOJ),YearlyValue)),EmpCode))

Thanks.

 

Kushal_Chawda

@sona_sa  may be below

Sum({<EmpCode ={" =MonthEnd(Link_Date)=Monthend(DOJ)"}>}YearlyValue)