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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Heiner26
Frequent Visitor

Creating Forecast based on Pipeline Values between Dates and conversion rate

Hey everyone,

first of all: great support you give to the community 👏 encourages me to keep on discovering the potential of Power BI.

Was searching this forum for a solution for the challenge i face - but as I could not find I dare to open a new topic:

 

I want to show the potential value of a project in the future in a kind of forecast.

I have already mapped this successfully once in Excel. This is what my data table looks like:

Project NamePhaseStatusDatePhase1DatePhase2DatePhase3DatePhase4Value
A1live01.08.202314.04.202425.09.202403.06.2025150
B2rejected15.09.202315.04.202401.10.202405.07.202580
C3live23.09.202318.06.202418.10.202416.09.2025200
D2live14.10.202322.07.202420.12.202413.08.202550
E4live17.03.202514.08.202516.09.202420.10.202480


- Each project has an initial value at the start
- Each project goes through 4 phases until the end
- Each project has the status “live” at the beginning, if it is stopped it gets the status “rejected”
- Only projects from phase 2 and with the status “live” are taken into account for the forecast
- The date values for entering the respective phase are either already fixed or are calculated based on empirical values
- With each transition to the next phase, the value of the project is reduced to take into account a kind of “conversion rate”
(entering phase 3: 75% of the initial value, entering phase 4: 35%)

- If the project has already reached the phase for which the forecast is to be calculated, 100% of the value is assumed (no conversion rate); if the current phase is lower, the conversion rate is used.


And this is my forecast (desired outcome) based on the pipline values:

 2024
 010203040506070809101112
Phase 200015015035040040025050500
Phase 30000000080200200238
Phase 4000000000808080

 

The line below the year is the month and the last day of the month is used for the comparison.

In Excel, you can use the SUMPRODUCT function to query the individual criteria. Here is an example of how I can calculate the performance for phase 4 (L$4 relates ts the last day of the month in the row below the year):

 

=SUMMENPRODUKT((FunctionTable[[Value]:[Value]])*(FunctionTable[[DatePhase4]:[DatePhase4]]<>"")*(FunctionTable[[Status]:[Status]]="live")*(FunctionTable[[DatePhase4]:[DatePhase4]]<=L$4)*(FunctionTable[[Phase]:[Phase]]=4))+

 

SUMMENPRODUKT((FunctionTable[[Value]:[Value]])*(FunctionTable[[DatePhase4]:[DatePhase4]]<>"")*(FunctionTable[[Status]:[Status]]="live")*(FunctionTable[[DatePhase4]:[DatePhase4]]<=L$4)*(FunctionTable[[Phase]:[Phase]]=3))*0,75+

 

SUMMENPRODUKT((FunctionTable[[Value]:[Value]])*(FunctionTable[[DatePhase4]:[DatePhase4]]<>"")*(FunctionTable[[Status]:[Status]]="live")*(FunctionTable[[DatePhase4]:[DatePhase4]]<=L$4)*(FunctionTable[[Phase]:[Phase]]=2))*0,35

 

I have already successfully imported the function table into Power BI and also created a date table. I am currently stuck with the calculation of the forecast per phase and date/month...

Is there a chance to build this query or the table for the forecast in Power BI?

 

I am happy about any advice you can give me ☺️

13 REPLIES 13
Heiner26
Frequent Visitor

Hey there,

I studied some other threads with similar background and I guess SUMX/CALCULATE together with FILTER could be the solution. I added the following measure to my date table (without taking the phase into account for conversion rate):

 

ForecastPhase2 = Sumx( FunctionTable, CALCULATE( SUM(FunctionTable [ Value]),

FILTER( FunctionTable, FunctionTable [DatePhase2] <= Min('Datetable'[Date]) && FunctionTable [DatePhase3] >= max('Datetable'[Date])

 

but the measure is not even shown as column in my date table 😢

maybe power bi is a size too big and i'd better keep using excel 😬

Heiner26
Frequent Visitor

Hey @lbendlin my I kindly come back to this topic? Have you been able to find a solution 🥺 or are you still missing some information from my side? Thx and regards

sorry, real life got in the way.  Maybe over the weekend.

lbendlin
Super User
Super User

You seem to want this by month yet the DatePhase dates are distributed across all days. Do you want a wighted/partial attribution, or should the full value be attributed to the month regardless of when in the month the phase starts?

 

The dates on Project E are out of sequence.

Hey,

Yes, exactly: by months... So how do inflows and outflows develop for each phase over the respective months! A later aggregation to quarters would also be good - but is not absolutely necessary.

 

And the value determined via the conversion rate should be fully attributed to the Momat regardless of when in the month the phase was reached. The last day of the month is the deadline, so to speak 🙏

 

And yes: Project E is out of sequence - was a typo when creating the table....

Still waiting for Project E correction.

sure - here you go:

Data Table:

Project NamePhaseStatusDatePhase1DatePhase2DatePhase3DatePhase4Value
A1live01.08.202314.04.202425.09.202403.06.2025150
B2rejected15.09.202315.04.202401.10.202405.07.202580
C3live23.09.202318.06.202418.10.202416.09.2025200
D2live14.10.202322.07.202420.12.202413.08.202550
E4live17.01.202305.03.202417.06.202431.12.202480

 

desired outcome (forecast for each phase based on current phase and enter dates):

 2024
 010203040506070809101112
Phase 2008023023035040040025050500
Phase 30000080808080280280238
Phase 40000000000080

Hi,

I am not sure how much i can help but i would like to try.  Share the download link of an MS Excel file with your sumproduct() formula already written there.  I will try to translate that formula into the DAX formula language.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for jumping in, Ashish 🙏

 

you can download the Excel here: https://www.dropbox.com/scl/fi/0w0w6o5ooa76z005tbwa6/Project_Forecast_DEMO_v2.xlsx?rlkey=7cfjx3pqwh9...

 

Best Regards,

Heiner

This is my abortive attempt.  I have not been able to get the total - just the count of rows in each month which satisfy all conditions.  Hope this helps marginally.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

thanks, Ashish!

I appreciate your support very much and for sure this will help me on the way to the soultion 😉

Will have a closer look during this week and I hope its fine to come back to you if there is any questions 🙏☺️

What should happen when multiple project phases fall into the same month (or quarter) ?

when multiple project phases fall into the same month (or quarter) the value - according to the conversion rate - should be shown in pipe for each phase.

 

eg. a Project is in phase 2 and the calcualted date to be in phase 3 is on 01.03.25 and to be in phase 4 on 30.03.25. Then for March 25 75% of value should be shown in pipe of phase 3 and also for March 25 35% of value should be shown in pipe of phase 4 ☺️

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.