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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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