Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis - Variable within the previous 30 days

Hi  I have created a set analysis, where I only want to include a sum of the FTE if the stage in in Authorisation and the Modification date is within the previous 30 days.  It works fine without the variable, but then returns zero when I include the variable.

I have created a variable to identify the date 30 days ago.  When I try to apply it to my set analysis it doesn't work. What am I doing wrong.

=Sum(Aggr(Sum(

{<

Recruit.Vacancy_Stage={'Authorisation'},

[Recruit.Vacancy Modified Date]={'$(>=v30DaysOld)'}

>}

Recruit.Vacancy_FTE),Recruit.empjobref))

Cheers

Phil

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Phil,

maybe

=Sum(Aggr(Sum(

{<

Recruit.Vacancy_Stage={'Authorisation'},

[Recruit.Vacancy Modified Date]={'>=$(=v30DaysOld)'}

>}

Recruit.Vacancy_FTE),Recruit.empjobref))

Regards,

Antonio

View solution in original post

4 Replies
antoniotiman
Master III
Master III

Hi Phil,

maybe

=Sum(Aggr(Sum(

{<

Recruit.Vacancy_Stage={'Authorisation'},

[Recruit.Vacancy Modified Date]={'>=$(=v30DaysOld)'}

>}

Recruit.Vacancy_FTE),Recruit.empjobref))

Regards,

Antonio

Anil_Babu_Samineni

Or this?

=Sum(Aggr(Sum(

{<

Recruit.Vacancy_Stage={'Authorisation'},

[Recruit.Vacancy Modified Date]={'$('>=' & =v30DaysOld)'}

>}

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

This didn't work, but eventually sorted it by changing the variable to:

v30DaysOld=Date((Today()-30))

Previously set at : v30DaysOld=(Today()-30)

Kushal_Chawda

try like below

Sum(Aggr(Sum(

{<

Recruit.Vacancy_Stage={'Authorisation'},

[Recruit.Vacancy Modified Date]={">=$(v30DaysOld)"}

>}

Recruit.Vacancy_FTE),Recruit.empjobref))