Hi @some_analyst ,
Thank you for reaching out to the Microsoft Community Forum.
Can you please follow below steps:
1. Create a What-If Parameter for Input (Reduction/Week):
Go to Modeling > New Parameter and call it Weekly Decrease.
Data type: Whole Number, Minimum: 0, Maximum: 100 , Increment: 1 and Default: 35
Power BI will create a slicer automatically so the user can select different values (e.g., 35, 45).
2. Build a Forecast Column (Calculated Column):
In your table (e.g., PendingApplications), create a new column:
Pending Forecast by Input =
VAR StartWeek = MINX(FILTER(PendingApplications, NOT(ISBLANK([Pending]))), [Week Start])
VAR StartPending =
CALCULATE(
MAX([Pending]),
FILTER(PendingApplications, [Week Start] = StartWeek)
)
VAR WeeksPassed =
DATEDIFF(StartWeek, [Week Start], WEEK)
VAR DecreasePerWeek = SELECTEDVALUE('Weekly Decrease'[Weekly Decrease])
VAR ForecastValue = StartPending - (WeeksPassed * DecreasePerWeek)
RETURN IF(ForecastValue >= 0, ForecastValue, 0)
This will dynamically calculate the forecast each week based on the selected reduction per week.
3. Plot the Forecast Line in Your Graph:
Add a line or combo chart with: X-axis: Week Start, Y-axis: both [Pending] and [Pending Forecast by Input]
Use the slicer from your What-If parameter to test different scenarios (e.g., reduce 35 per week vs. 45)
4. Add a Target Line (e.g., 400)
To show when the forecast crosses the 400 mark:
Create a constant line at 400 (Analytics pane) or create a target measure.
You can also use a DAX measure to calculate when the forecast would reach 400.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you