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
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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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.