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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Nikitas1
Regular Visitor

Convert excel formula to DAX

Hello ,   

how can i convert below Excel formula to Power BI measure to take the average of given values that correspond to hourly quarters to hour values.

=AVERAGE(OFFSET($D$2;(ROW()-ROW($E$2))*4;;4))

 

I would prefer to take the hourly average in correspondance to each hour of the day , i.e. i have a column contaning the date , another column is the time of the day in ascending order from 1 to 24 and finally thw column with 96 values (one value per quarter of an hour ) . 

 

To sum up i  would like a DAX query that gives the average of 96 values by 4 in order to transform data drom quarterly arrangement to hourly . 

 

Thank you in advance !!

2 REPLIES 2
amitchandak
Super User
Super User

@Nikitas1 , Based on what I got

 

Averagex(Summarize(Table, Table[Date], Table[Hour], "_sum", sum(Table[Value])), [_sum])

 

 

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

Well column date hour doesnt exist , only quarter column exists. I want the average for every four quarters not the sum . Thank you my frined for your response.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.