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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Easley06
Helper II
Helper II

Past 3 months selected date

Hi,

 

i already have the Past 3 month average of the lastdate 

Easley06_0-1664326753592.png

Easley06_1-1664326813598.png

current measure : 

Gross P3 1 = CALCULATE(SUM(FACT_OFF_TAKE[GROSS_AMT]), DATESINPERIOD(DATE_SYSTEM[DATE],
LASTDATE(PREVIOUSMONTH(LASTDATE(DATE_SYSTEM[DATE]))), -3,MONTH),
ALL(DATE_SYSTEM[MONTH_NAME],DATE_SYSTEM[MONTH],DATE_SYSTEM[YEAR])) / 3
 
But i need to get the start date of these Dates 
Easley06_2-1664327125558.png

 

measure used = 

Gross P3 2 = CALCULATE(SUM(FACT_OFF_TAKE[GROSS_AMT]), DATESINPERIOD(DATE_SYSTEM[DATE],
LASTDATE(PREVIOUSMONTH(LASTDATE(HOME_RESELLER[TRAINING_DT]))), -3,MONTH),
ALL(DATE_SYSTEM[MONTH_NAME],DATE_SYSTEM[MONTH],DATE_SYSTEM[YEAR])) / 3
 
thanks.

 

1 REPLY 1
amitchandak
Super User
Super User

@Easley06 , You should use date table joined with date of your table

 

example

 

3 Month Avg = CALCULATE(AverageX(Values('Date'[MONTH Year]),calculate(Sum(FACT_OFF_TAKE[GROSS_AMT])))
,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-3,MONTH))

 

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

Average of Rolling, Average of Snapshots: https://youtu.be/_pZRdLAJxxA

 

If you need 3 month on axis

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.