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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
vehloaaron
Frequent Visitor

Forecasting Lead Volume Using Moving Average

PBI Community - Looking for some help on a using a moving average to forecast out where my lead or sales actuals will end up for at quarter end.  Researching in the community I can see mix results of others trying this.  At the end of the day I'd like to use some run rate to forecast.  I was able to accomplish this in Excell using Average w/ Offset on a date and sum values.  In PBI I am hitting a snag when adding the measures to my to my table here is what I have, any help on this would be greatly appreciated

 

MEL Count = CALCULATE(COUNT(Leads[MEL Date Only]),Leads[MEL Date Only]<>BLANK(),USERELATIONSHIP(Leads[MEL Date Only],'Date'[Date]))
 
MEL 60 Days Count = (CALCULATE([MEL Count],DATESINPERIOD('Date'[Date],LASTDATE('Date'[Date]),-61,DAY)))
 
MEL 60 Day Avg. = DIVIDE([MEL 60 Days Count],60,BLANK())
 
Days Remaining In Quarter = DATEDIFF(TODAY(),ENDOFQUARTER('Date'[Date]),DAY)
 
EOQ MEL Forecast = [MEL 60 Day Avg.]*[Days Remaining In Quarter]
 
Have the following tables: 
 
Date--> Montly Target --> Status 
MEL Date
Date
 
So a target table related to date table and a table with data with leads that I coun the mel date.  
1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @vehloaaron 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.