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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.