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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calculate Revenue Backlog over Time

Dear all,

 

I would like to calculate and visualize revenue backlog development over time. Furthermore, the backlog should be displayed by Year of Contract Award in a stack bar chart. For example, a contract value of $1M won in 2019 could be distributed over 3 years. This would mean that the backlog at the end of year 2019 would be "Total Contract Revenue - Revenue realized in 2019" and so on. The visual should look like this:

Screenshot 2021-07-26 184756.png

The problem which I'm struggling with is that the Backlog is calculated over the whole time period for all contract years. For example in the visual above the backlog in Year 2019 displays the backlog of Projects which were awarded in 2020 and 2021 which makes no sense as they weren't known then. Similar in Year 2020 I have my Barchart display a backlog for projects awarded in 2021. I have marked the area which should not be displayed with an "X" in the screenshot. 

 

My DAX Measure for the backlog looks as follows:

Screenshot 2021-07-26 185336.png
How can I dynamically exclude revenues from the backlog which belong to future contracts? Note: The contract Award Year is tracked in a Project Overview Table as a whole number. 

Thanks in advance!

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

In the case you have sent out yuo want to remove the marked values?

 

MFelix_0-1627395105304.png

Are the totals correct?

 

If this is the case change your measure to:

Revenue Backlog = 
SUMX (
    FILTER (
        ProjectOverview,
        ProjectOverview[ContractAward] <= MAX ( InvoiceDates[Year] )
    ),
    CALCULATE (
        [Revenue],
        FILTER (
            ALLSELECTED ( InvoiceDates[Date] ),
            ISONORAFTER ( InvoiceDates[Date], MAX ( InvoiceDates[Date] ), ASC )
        )
    )
)

 

Check result below and in attach PBIX file:

MFelix_1-1627395344407.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Anonymous ,

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi @MFelix, thanks for the response and helping me out on this one. Here is a PBIX file with sample data and a quick visualisation of where I currently stand. Like mentioned above I need to account for the award year in my filter to exclude future contracts from being displayed in years prior to contract award. Hope that makes sense 😉

here is the Link to the PBIX file: Download from OneDrive 

 

 

Hi @Anonymous ,

 

In the case you have sent out yuo want to remove the marked values?

 

MFelix_0-1627395105304.png

Are the totals correct?

 

If this is the case change your measure to:

Revenue Backlog = 
SUMX (
    FILTER (
        ProjectOverview,
        ProjectOverview[ContractAward] <= MAX ( InvoiceDates[Year] )
    ),
    CALCULATE (
        [Revenue],
        FILTER (
            ALLSELECTED ( InvoiceDates[Date] ),
            ISONORAFTER ( InvoiceDates[Date], MAX ( InvoiceDates[Date] ), ASC )
        )
    )
)

 

Check result below and in attach PBIX file:

MFelix_1-1627395344407.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

it worked perfectly. Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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