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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MSanchezz
Frequent Visitor

Aging Days Overdue Calculated Column

Hi All,

 

can you please help me with this issue I have? Currently, I have two tables, one for date and another for customer transactions. And I want to have a column where it will show the age of my receivables. Last date in my date table is 12/31/2025 and in my date difference, my due date computes against 12/31/2025. What should I do to make it so that the difference will be from the selected value in my slicer?

 

relationship on the date and customer transactions is the Posting Date from customer transactions.

MSanchezz_1-1616763834809.png

If measure is the only way for classification of current, 1-30 days due, 31-60 days dues, etc. what can be the way to make the classification be the axis in my stacked bar chart?

 

Thank you so much.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MSanchezz , if you want to calculate age against max date or today you can have column

 

Age = Datediff([Due date], today(), day)

 

Using switch , you can create a bucket -new column -https://www.youtube.com/watch?v=gelJWktlR80

 

But it is based on the selected date, then you need to measure

 

Age = Datediff([Due date], selectedvalue(Date[Date]) , day)

 

In this case, you need to create a bucket using an independent table - https://www.youtube.com/watch?v=CuczXPj0N-k

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @MSanchezz 

I don't 100% understand your requirement. You want to calculate the difference between which two dates? The date slicer selects dates between 1/1/2018 and 3/26/2021, and the table shows Due Date is 3/25/2021. Is there a connection between them? And you want the difference between 3/26/2021 and 12/31/2025? Or I totally understand it wrong? Can you describe the output with some sample data to help us understand your requirement better?

 

Regards,
Community Support Team _ Jing

amitchandak
Super User
Super User

@MSanchezz , if you want to calculate age against max date or today you can have column

 

Age = Datediff([Due date], today(), day)

 

Using switch , you can create a bucket -new column -https://www.youtube.com/watch?v=gelJWktlR80

 

But it is based on the selected date, then you need to measure

 

Age = Datediff([Due date], selectedvalue(Date[Date]) , day)

 

In this case, you need to create a bucket using an independent table - https://www.youtube.com/watch?v=CuczXPj0N-k

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.