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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Forecast Line graph without going over 100%

I currently have a quarterly success measure that ranges from 0 - 100 and I would like to predict the next values over 1 / 2 upcoming quarters. I know I can use the [analytics] - [foreasting] section to predict upcoming values within 95% / 99% confidence interval. However as I have a lot of max values = 1 / 100%  some of the predictions are over 100 which isn't helpful for what I need.

 

I have written a DAX code for Success and a comparison to Last Year:

 

Success = DIVIDE([Sales],[Estimated Sales])
Success Last Year = CALCULATE(DIVIDE([Sales],[Estimated Sales]),DATEADD('DimDate'[Dates],-4,QUARTER))
Quarter YearSuccessSuccess Last Year

Q1 2019

1.00 
Q2 20190.52 
Q3 20190.45 
Q4 20191.00 
Q1 20200.541.00
Q2 20200.460.52
Q3 20200.600.45
Q4 20201.001.00
Q1 20210.560.54
Q2 20210.130.46
Q3 20210.280.60
Q4 20210.281.00
Q1 2022 0.56
Q2 2022 0.13
Q3 2022 0.28
Q4 2022 0.28

 

But I feel this is too simplified to just compare last years values to this year.

 

Is there a way to forecast [Success] measure via DAX for the next Quarter or two without it going over 100?

 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ,

 

I think you could  average last year's success and this year's success rate to get a prediction. The more years there are, the more reliable the data are. The DAX can be modified to the following form:

Success Last Year = (CALCULATE(DIVIDE([Sales],[Estimated Sales]),DATEADD('DimDate'[Dates],-4,QUARTER))+CALCULATE(DIVIDE([Sales],[Estimated Sales]),DATEADD('DimDate'[Dates],-8,QUARTER)))/2

I hope this idea can help you. If not, please provide me with more details about your problem and  logic or share me with your pbix file after removing sensitive data.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ,

 

I think you could  average last year's success and this year's success rate to get a prediction. The more years there are, the more reliable the data are. The DAX can be modified to the following form:

Success Last Year = (CALCULATE(DIVIDE([Sales],[Estimated Sales]),DATEADD('DimDate'[Dates],-4,QUARTER))+CALCULATE(DIVIDE([Sales],[Estimated Sales]),DATEADD('DimDate'[Dates],-8,QUARTER)))/2

I hope this idea can help you. If not, please provide me with more details about your problem and  logic or share me with your pbix file after removing sensitive data.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.