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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Migscruz
Helper I
Helper I

Rolling periods for quarters

Hello, i need help for calculating sales rolling periods for a table with a date column that works like this:

 

01/03/2021 --> Corresponds to the sales of the first quarter.

01/06/2021 --> Corresponds to the sales of the second quarter.

01/09/2021 --> Corresponds to the sales of the third quarter.

01/12/2021 --> Corresponds to the sales of the fourth quarter.

 

I want to have the sales rolling periods like this:

 

Average sales of 01/12/2021 (fourth quarter) & 01/09/2021 (third quarter) vs Average sales of 01/06/2021 (second quarter) & 01/03/2021 (first quarter). I was trying to do a dax measure with dateadd function but it's not working i dont know why. 

 

The table is simple it's like this:

DateSalesStore
1/03/2021120A
1/06/2021200A
1/09/2021300C
1/12/2021500C
1/03/202180C
1/06/2021100D
1/09/202190B
1/12/2021200A

 

Thanks!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.  The total columns show you the average sales figures.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.  The total columns show you the average sales figures.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@Migscruz 

not clear about the description of the output. do you want to combine the avearge of two quarters?

pls see the attachment below. hope this is helpful





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.