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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
sgruber
Frequent Visitor

Values over time

Capture.PNG

For a the above sales pipeline, I am trying to take the value of a lead and create a forecast of the revenue over time, based on it's value, start date and duration. I have done this in Excel and am trying to recreate in Power BI using a measure that returns the monthly recurring revenue for each month in a dimension table (the dim table is a list of of the first dates for all months).

 

Revenue = IF(AND(
                STARTOFMONTH('Leads'[Start Month]) >= STARTOFMONTH('Months'[Date]),
                STARTOFMONTH('Leads'[Start Month]) < DATEADD(STARTOFMONTH('Months'[Date]),SUM(Leads[Duration (Months)]),MONTH)),
            SUM(Leads[Monthly Revenue]),
            0)

 

 

When I create a pivot table of the measure, leads and dates, it shows all zero's, so can't get to show the monthly revenue per lead for each month.

Capture2.PNG

 

Links to the the pbix file and excel file below:

PBIX file

Excel file

 

Am I going about this the right way? Some post's I've seen point to using a crossjoin rather, but I'm not sure how one would go about using a crossjoin in a measure? Any help would be greatly appreciated.

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @sgruber

 

You may have a look at the sample file here to check if the measure matches your requirement.

1.png

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors