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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
FabG
New Member

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.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@FabG , Please find the attached file. Added index in Power Query. Sum of each type of category on 6th element

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@FabG , Please find the attached file. Added index in Power Query. Sum of each type of category on 6th element

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

that would be really useful.

thank you.

Hi amitchandak,

 

i managed to open the file and it works perfectly.

Thank you very much for your help.

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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.