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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Date & Value when an order is x days overdue

Hi PowerBi Community,

 

Having some difficulties with this question thats been put across me. 

I've been asked to provide both the date and Balance where the customer is late making a payment, >5 & >10 days overdue. Back story is that we are looking to potentially introduce penalty fees if a customer is late paying for their order, so trying to gague the best time frame to implement it without annoying customers too much. 

 

In the example below the customer the customer is 6 days overdue on the 13th Jan 2021 with an overdue balance of £30, and is 11days overdue on the 18th Jan 2021 with an overdue balance of £30. In scenarios where the data is incomplete and days 6/10 are missing it would be amazing if the date could be the next date eg 19th Jan 2021. 

 

 

JamieP_1990_1-1614202292590.png

 

Sample Power BI 

Sample Excel File

 

 

1 REPLY 1
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

I assume that you want to summarize by customer, orderid and calculate the balance of the max date in each group. You may try the following measure. The pbix file is attached in the end.

SumBalance = 
SUMX(
    SUMMARIZE(
        'Sample',
        'Sample'[Customer],
        'Sample'[OrderID],
        "Re",
        var d = MAX('Sample'[Date])
        return
        CALCULATE(
            SUM('Sample'[Balance]),
            FILTER(
                'Sample',
                [Date]=d
            )
        )
    ),
    [Re]
)

 

Result:

d1.png

 

If i misunderstand your thoughts, please show us the expected result with OneDrive for business. Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors