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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I
Helper I

Aging report - age buskets wrong calculation


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] ) ),
        MIN ( CustomerLedgerEntries[Due_Date] ),
        MAX ( 'Calendar'[Date] ),
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 =

        [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? 


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

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

Top Solution Authors