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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

SAP Order Backlog over time until delivery date

Hi everybody,

 

I am currently facing the challenge to show how my order backlog develops over time until the expected delivery date.

I have SAP sales data where we have order intake postings as well as reduction postings when there was a sale for the order.

I already have a measure that shows the order intake, one for the reduction postings and another one that shows the order backlog over time. However it continues until forever but I would want it to only show the order backlog until the expected delivery date (which is the posting date in the order entry row) for every order.

How can I achieve this?

 

My data looks like this.

OrderPostingIntake DatePosting DateAmount
12345Order Entry05.11.202224.01.20231000
12345Reduction Posting05.11.202210.12.2022-700

In this case I would want to see an order backlog of 1000 from 05.11.2022 - 09.12.2022, then order backlog of 300 from 10.12.2022 - 23.01.2023. My measure already does most of it, but it shows the 300 until forever, not only until 23.01.2023.

Somehow I need to tell the function to do this calculation for every order and then stop at the expected delivery date. But I don't know how...

 

This is my code

 

Order Bklog = 
CALCULATE(
    CALCULATE(
        [Order Int] + [Reduction Postings],
        'Fact Order'[Source] <> "HIST"),
    FILTER(
        ALL('Dim Date'),
        AND(
            'Dim Date'[Date] <= MAX('Dim Date'[Date]),
            NOT(ISBLANK('Dim Date'[Date])))))

 

 

Thanks in advance!

Janina

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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