Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

GUI CALC ISSUSE Avg(aggr(sum(aggr)))

Hi all

The following table

Dailyprojectval
07.31.13a300.00
08.01.13a2.00
08.02.13a1.00
08.03.13a0.50
08.04.13b0.20
08.05.13b0.10
08.06.13a0.15
08.13.13 14:00a2.00
08.13.13 15:00a1.00
08.13.13 16:00a2.00
08.13.13 17:00a3.00
08.13.13 18:00a1.00
08.13.13 19:00a1.00
08.13.13 20:00a1.00
08.13.13 21:00a0.00
08.13.13 22:00a0.00
08.13.13 23:00a2.00
08.14.13 00:00a0.00
08.14.13 01:00a6.00
08.14.13 02:00a4.00
08.14.13 03:00a0.00
08.14.13 04:00a0.00
08.14.13 05:00b0.00
08.14.13 06:00b0.00
08.14.13 07:00b0.00
08.14.13 08:00b0.00
08.14.13 09:00b2.00
08.14.13 10:00b1.00
08.14.13 11:00b10.00
08.14.13 12:00b0.00
08.14.13 13:00b0.00
08.14.13 14:00b4.00
08.14.13 15:00b0.00
08.14.13 16:00b0.00
08.14.13 17:00b4.00
08.14.13 18:00b4.00
08.14.13 19:00b0.00
08.14.13 20:00b2.00
08.14.13 21:00b2.00
08.14.13 22:00b1.00




First I need to sum up all  values  to a daily level (in other words group by the values to daily so I wont have hourly vals)

Then I need to do an avg on those daily values  for the last 14 days

This is what I came up with :

avg(aggr(sum(Aggr($(val), date,,project)), date, project))

val= (sum({<date ={"<41499>41485"}>}val)) -  this var is  a set analysis that calculates the last 14days , this work great my problem is with the grouping

Sadly i  have to do this in the  GUI can't use the script

Help please

3 Replies
Carlos_Reyes
Partner - Specialist
Partner - Specialist

I think you have too many commas in the first aggr. Delete one.

Try:

avg(

     aggr(

          sum(

               Aggr(

                         $(val)

               , date,project)

          )

     , date, project)

)

rustyfishbones
Master II
Master II

Where are you getting the date field from?

Are you reformating Daily as date in your script?

If so, what way have you formatted this date?

qliksus
Specialist II
Specialist II

Hi,

If val= (sum({<date ={"<41499>41485"}>}val)) fails at grouping then add AGGR inside set analysis like

val= sum({<date ={"<41499>41485"}>}AGGR(sum({<date ={"<41499>41485"}>}val),date,project))


Hope it will suffix ur need.