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
Ivan_lopez
Frequent Visitor

Excel linear forecast function equivalent to DAX

Hello everybody!

I would like to replicate the Excel function "linear forecast" on a DAX metric. I have searched for documentation on how the metric works and found this formula:

 

Ivan_lopez_2-1672661968110.png

 

I have replicated this formula on a DAX metric but it does not predict me the value for the last period, it just gives me the HIT RATIO value in that period.

 

Ivan_lopez_0-1672661891114.png

 

Would anyone know how to calculate it?

 

Thanks in advance.

Best regards

4 REPLIES 4
Ivan_lopez
Frequent Visitor

This is the page where I got the formula, but I can't get it to predict the next period.

Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

a example:

Ivan_lopez_1-1672827410215.png

 

the expected proyection is 21.82%

lbendlin
Super User
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.

Top Solution Authors