Forecasting and what if parameters in Power Bi Desktop


New Member
Hi Everyone,

I'm trying to do some predictive forecasting with parameters but I'm coming across an issue when using parameters into the future. What i'm trying to do is forecast the amount of people on a waiting list in the future but this can be altered by using parameters which will remove more than forecast. So for example, I have 100 people on a list in Jan 150 in Feb 200 in March etc, and I can forecast these out fine, I can even add in the parameter to for a what if (Extra Clinic), but the problem with the what if is that if I change the what if variable, it changes all the past information too, and I only want to change the future forecast.

The data contains a record for each person on the list so for January I have 100 records and so on, so I created a distinct count measure of patients (No. Of Patients) to get me the total number in that month.
I found this formula which kind of works but instead of taking the distinct count of the values at the point it takes all the records. The sn_cal_month_id is the date rage.
Here's the query:

WL Prediction Parameter = SUMX(Query1, IF((Query1[sn_cal_month_id]) > 201801, 'Query1'[No. Of Patients] - 'Extra Clinic'[Extra Clinic Value], Query1[No. Of Patients]))

So instead of getting just a figure removed off a single month, it removes the entire amount of records from the graph.
Any idea what I'm doing so horribly wrong?

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Macro to copy values across rows and transposing them and add the user id
    [FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]Hi,[/COLOR][/SIZE][/FONT] [FONT=Times New...