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
Hello,
I want to compare rolling forecast of January and Febuary for each product and company. I need a new column, raw data and result should be like following:
Can you please instruct how to write the formula?
Thank you
Solved! Go to Solution.
Hi @hongyuliu
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create a column.
New Column (Previous Forecast) =
IF('Table'[Date of Update] <> MIN('Table'[Date of Update]),
CALCULATE(
VALUES('Table'[Value]),
FILTER(
ALL('Table'),
'Table'[Product] = EARLIER('Table'[Product])
&&
'Table'[Forecast Month] = EARLIER('Table'[Forecast Month])
&&
'Table'[Date of Update] = MIN('Table'[Date of Update])
)
),
BLANK()
)
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hongyuliu
For your question, here is the method I provided:
Here's some dummy data
"Table"
Create a column.
New Column (Previous Forecast) =
IF('Table'[Date of Update] <> MIN('Table'[Date of Update]),
CALCULATE(
VALUES('Table'[Value]),
FILTER(
ALL('Table'),
'Table'[Product] = EARLIER('Table'[Product])
&&
'Table'[Forecast Month] = EARLIER('Table'[Forecast Month])
&&
'Table'[Date of Update] = MIN('Table'[Date of Update])
)
),
BLANK()
)
Here is the result.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
I want to compare rolling forecast of January and Febuary for each product and company. I need a new column, raw data and result should be like following:
Can you please instruct how to write the formula?
Thank you
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 |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |