March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi everyone, I’m facing a challenge and would appreciate some guidance. I need to calculate a ratio based on the last three months of data and use that to predict the quantity for the next nine months.
Here’s the situation: I have two columns of data: one represents the approximate volume for the whole year, and the other contains the real-time quantity, which gets updated over time. For example, if we are currently in September, I need to calculate the ratio using data from June to August. Based on this ratio, I need to predict the real-time quantity for the upcoming nine months.
Any insights on how I can approach this would be really helpful. Thank you!
Solved! Go to Solution.
Hi, @12Pro
Check out already solved soluton here,
Solved: Re: Prediction - Microsoft Fabric Community
refer: Solved: Prediction calculation - Microsoft Fabric Community
Proud to be a Super User!
Calculate the Last Three Months' Real-Time Quantity:
LastThreeMonthsQty =
CALCULATE(
SUM(YourData[RealTimeQuantity]),
DATESINPERIOD(DateTable[Date], MAX(DateTable[Date]), -3, MONTH)
)
Calculate the Ratio
Ratio =
DIVIDE(
[LastThreeMonthsQty],
SUM(YourData[AnnualVolume]),
0
)
Predict Quantity for the Next Nine Months:
PredictedQtyNextNineMonths =
[Ratio] * SUM(YourData[AnnualVolume]) * (9 / 12) // Adjust as necessary based on your prediction logic
Hi @12Pro ,
Thanks for rubayatyasmin's and Kedar_Pande 's replies!
@12Pro , please check whether their solutions are what you want? If they help you solve your problem, accept their replies as solutions to help more others facing the same problem to find a solution quickly, thank you very much!
If these responses didn't help you, could you please provide some sample data and your expected results, and could you please describe exactly what kind of calculation process you are referring to when you say you are predicting the next 9 months, please?
Best Regards,
Dino Tao
Calculate the Last Three Months' Real-Time Quantity:
LastThreeMonthsQty =
CALCULATE(
SUM(YourData[RealTimeQuantity]),
DATESINPERIOD(DateTable[Date], MAX(DateTable[Date]), -3, MONTH)
)
Calculate the Ratio
Ratio =
DIVIDE(
[LastThreeMonthsQty],
SUM(YourData[AnnualVolume]),
0
)
Predict Quantity for the Next Nine Months:
PredictedQtyNextNineMonths =
[Ratio] * SUM(YourData[AnnualVolume]) * (9 / 12) // Adjust as necessary based on your prediction logic
Hi, @12Pro
Check out already solved soluton here,
Solved: Re: Prediction - Microsoft Fabric Community
refer: Solved: Prediction calculation - Microsoft Fabric Community
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |