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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Receivables aging

Hi,

 

Below is a sample table for customer invoices. I have a calender table and would like to see the aging as of date using a slicer. Calculation of the buckets will be using the difference between the due date and selected date on the slicer. Already looked into the formus here but didn't exactly find what I need. If this has already been answered, please point me to the solution.

 

Customer CodeInvoiceAmountDue Date
PS-CR-1305INV00023                  2,8685/14/2023
PS-CR-0238INV00024                14,0652/15/2023
PS-CR-0238INV00025                  7,4441/2/2023
PS-CR-1220INV00026                  8,06612/29/2022
PS-CR-0519INV00027                  4,87112/29/2022
PS-CR-0791INV00028                  1,68612/23/2022
PS-CR-0519INV00030                  7,78212/22/2022

 

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _select=SELECTEDVALUE('calender table'[Date])
return
DATEDIFF(_select,MAX('Table'[Due Date]),DAY)

2. Result:

vyangliumsft_0-1670900096759.png

 

Best Regards,

Liu Yang

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _select=SELECTEDVALUE('calender table'[Date])
return
DATEDIFF(_select,MAX('Table'[Due Date]),DAY)

2. Result:

vyangliumsft_0-1670900096759.png

 

Best Regards,

Liu Yang

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

Anonymous
Not applicable

Thi worked, Thanks

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.