Forum Discussion

FabG's avatar
FabG
New Member
4 years ago
Solved

average every 6 items

Good morning,

i have a very short experience with Bi and i need some help to solve an issue:

i have a table of mix and relative values and i need to calculate average every 6 item per category. So for example on table below, need to calculate the average for the first 6 record listed as mix7, then the average for the following 6 value of mix 7. Obviously the calculation has to be valid for all the mixes listed with the same criteria (every 6 record).

in the eample below i the average every 6 records was by manual entry, just to make it clear.

CategoryValueRollingAvg
mix754 
mix1046 
mix2023 
mix761 
mix758 
mix2025 
mix2022 
mix755 
mix759 
mix1049 
mix76057.8
mix762 
mix2023 
mix1045 
mix726 
mix744 
mix763 
mix2021 
mix1045 
mix2023 
mix747 
mix1048 
mix75950.2

 

so that, when i apply a filter to the table, should look like this

CategoryValueRllngAvg
mix754 
mix761 
mix758 
mix755 
mix759 
mix76057.8
mix762 
mix726 
mix744 
mix763 
mix747 
mix75950.2

 

thanks in advance.

4 Replies

    • FabG's avatar
      FabG
      New Member

      Hi amitchandak

       

      when i try to open the filed a message says it was edited with a newer version of Bi, but i literally download the desktop version few days ago and no updates are available so far.

    • FabG's avatar
      FabG
      New Member

      Hi amitchandak,

       

      i managed to open the file and it works perfectly.

      Thank you very much for your help.

    • FabG's avatar
      FabG
      New Member

      also if you find some time, can you go through the process and the functions you used?

      that would be really useful.

      thank you.