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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
pk1593
Helper I
Helper I

DAX code help: 4 Quarter Rolling

I have a sample data with Survey waves (from 10 different time periods 1 to 10). 

Need help in creating a measure which gives rolling 4 quarter average (this is not simple average of scores). 

 

In the attached file we have measure which gives the score by survey waves:

pk1593_0-1689492468794.png

What I want is to create a measure which gives 4 quarter rolling data (this is not simple average of 4 quarter as the data is weighted giving each wave some factor: refer column Weights) as below highligted:

pk1593_2-1689492622998.png

 

Desired result is as below, Need to create a measure which gives:

pk1593_3-1689492714440.png

It is important to note that the code should be dynamic as the Survey Wave column over time will get more values (11, 12 .... etc going forward in time).

Please download the .pbix file here for more clarity.

2 REPLIES 2
gregoliveira
Helper II
Helper II

Hi.

This article from SQLBI team explain how to deal with many time calculations (https://www.daxpatterns.com/standard-time-related-calculations/).

Hope this help you.

Thank you for sharing this, however I'm not able to solve the above specific query.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.