Skip to main content
cancel
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

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors