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
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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.