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! Request now

Reply
ola1996
Helper I
Helper I

Aging report - age buskets wrong calculation

Hello, 

I have decided to ask you for help because I already have no more idea for my problem. 

I created a aging report based on my data. The report should have a date slicer so user must to choose aging day and it will show data from the beginning of the earth till choosen date. I added to my report calendar table and make relationship beetween it and posting date with table included customer ledger entries data. 

Then I have created a measure to calculate past due days:

Customer PastDue =
IF (
    MIN ( CustomerLedgerEntries[Due_Date] )
        >= MAX ( 'Calendar'[Date] )
        || ISBLANK ( MAX ( 'Calendar'[Date] ) ),
    0,
    DATEDIFF (
        MIN ( CustomerLedgerEntries[Due_Date] ),
        MAX ( 'Calendar'[Date] ),
        DAY
    )
)
Then I added a aging boxes by measures like: 
Age 1-30
Age 31-60
Age 61-90
Above 90 days
 
DAX measure for 1st group
Age 1 - 30 =

CALCULATE(
    SUM('CustomerLedgerEntries'[Remaining_Amt_LCY]),
    FILTER(
        All('CustomerLedgerEntries'[Remaining_Amt_LCY]),
        [Customer PastDue] >= 1 && [Customer PastDue] < 30
    )
)

My problem is that when I create table I see wrong sum, but in the table with details which I have created amount are good but sum calculated is wrong. Could anyone help me please? 
ola1996_0-1683791835221.png

 

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @ola1996 

 

Sorry for that the information you have provided is not making the problem clear to me. Can you please share more details to help us clarify your scenario?

Please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards,

Jianbo Li

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

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.

Top Solution Authors
Top Kudoed Authors