cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Create a month grouping

I need to create a group, always taking a block of 3 months and adding the billing.

 

Nov - Out - Set = 1000

Out - Set - Ag  = 5000

Set - Ag - Jul - 8000

 

renannog_0-1669898835750.png

 

I'm happy if someone can help me!!! 

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , it better to use a rolling month measure

 

Rolling 3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-3,MONTH))

 

Rolling Months Formula: https://youtu.be/GS5O4G81fww

 

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors