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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Coops
New Member

Help creating Cumulative Revenue from Annualised Revenue Estimates and go live date

Hi, 

 

I am trying to create a report which shows a revenue forecast, based on the expected go live dates of a number of clients, and their expected annualised revenue.  

 

I have a table like the following 

ClientTarget Go Live DateEstimated Revenue Annualized
Client A3/31/23$ 100,000
Client B5/26/23$ 400,000
Client C9/14/23$ 600,000

 

I am trying to work out the total expected revenue for the year by 

- calculating the daily reveue for each date by  Summing the Estimated Revenue Annualized / 365 days for all clients where the Go Live Date < Date

- Calculating the cummulative daily revenue for each date. 

 

My goal is to end up with something similar to the below table - but have been struggling with getting the DAX to behave. 

Any help in how this is be done is greatly appreciated!  

 

MonthClient A Cumm. Rev. Client B Cumm. RevClient C Cumm Rev. Total Cumm Rev
Jan $                            -    $                          -    $                           -    $                    -  
Feb $                            -    $                          -    $                           -    $                    -  
Mar $                            -    $                          -    $                           -    $                    -  
Apr $                 8,213.55 $                          -    $                           -    $          8,213.55
May $               16,700.89 $               5,475.70 $                           -    $        22,176.59
Jun $               24,914.44 $             38,329.91 $                           -    $        63,244.35
Jul $               33,401.78 $             72,279.26 $                           -    $      105,681.04
Aug $               41,889.12 $           106,228.61 $                           -    $      148,117.73
Sep $               50,102.67 $           139,082.82 $              26,283.37 $      215,468.86
Oct $               58,590.01 $           173,032.17 $              77,207.39 $      308,829.57
Nov $               66,803.56 $           205,886.38 $            126,488.71 $      399,178.64
Dec $               75,290.90 $           239,835.73 $            177,412.73 $      492,539.36
Grand Total $               75,290.90 $           239,835.73 $            177,412.73 $      492,539.36

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Coops Try these two measures. Use Cumm Rev Total in your matrix. PBIX is attached below signature.

Cumm Rev = 
    VAR __StartDate = MIN('Table'[Target Go Live Date])
    VAR __Revenue = SUM('Table'[Estimated Revenue Annualized])
    VAR __PerDay = __Revenue / 365
    VAR __MaxDate = MAX('Dates'[Date])
    VAR __Diff = ( __MaxDate - __StartDate ) * 1.
    VAR __Result = IF( __Diff < 0, 0, __PerDay * __Diff)
RETURN
    __Result



Cumm Rev Total = 
    VAR __Table = SUMMARIZE('Table', [Client], "__Revenue", [Cumm Rev])
    VAR __Result = IF(HASONEVALUE('Table'[Client]), [Cumm Rev], SUMX(__Table, [__Revenue]))
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Coops
New Member

@Greg_Deckler  Thank you so much, this works perfectly! 

Greg_Deckler
Community Champion
Community Champion

@Coops Try these two measures. Use Cumm Rev Total in your matrix. PBIX is attached below signature.

Cumm Rev = 
    VAR __StartDate = MIN('Table'[Target Go Live Date])
    VAR __Revenue = SUM('Table'[Estimated Revenue Annualized])
    VAR __PerDay = __Revenue / 365
    VAR __MaxDate = MAX('Dates'[Date])
    VAR __Diff = ( __MaxDate - __StartDate ) * 1.
    VAR __Result = IF( __Diff < 0, 0, __PerDay * __Diff)
RETURN
    __Result



Cumm Rev Total = 
    VAR __Table = SUMMARIZE('Table', [Client], "__Revenue", [Cumm Rev])
    VAR __Result = IF(HASONEVALUE('Table'[Client]), [Cumm Rev], SUMX(__Table, [__Revenue]))
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.