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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Sunila
Helper I
Helper I

Help Needed with Calculating Days Overdue and Creating Aging Buckets in Power BI

Hi Power BI Community,

 

I am facing a challenge in Power BI related to calculating days overdue and categorizing them into stacked chart as aging buckets. Here's my situation:

I have a dataset called CustTrans, and I want to calculate the number of days overdue for each transaction from a due date to a selected user age date. I initially created a measure for this purpose, and it returns the correct nos of days

Days overdue Column = minx(CustTrans,DATEDIFF(max(CustTrans[DUEDATE]),[Selected Balance Date],DAY))
 

However, on using this measure in another measure(Days overdue groups) to categorize the days overdue into aging buckets against amt due balance(Y-axis), t does not work as expected, it collects the amount due balance in the "0-30 days" window and does not show the breakdown of the amount in various aging buckets. (as shown in the chart)

Days over due groups = 

If ('CustTrans'[Days Overdue Measure] < 0, "Not Yet Due",
If ('CustTrans'[Days Overdue Measure] <= 30, "0-30 Days",
If ('CustTrans'[Days Overdue Measure] <= 60, "31-60 Days",
and so on....)
Sunila_2-1695678515982.png

 

Using the Days overdue column instaed of Days overdue measure may solve this issue but days overduw calculated column is not returing nos of days as shown in the screen shot.

Sunila_0-1695676748436.png

I

 

I would greatly appreciate your help in refining my approach or providing any insights on how to calculate days overdue and categorize them into aging buckets correctly. Thank you in advance for your assistance!

3 REPLIES 3
Sunila
Helper I
Helper I

@some_bih 

 

I did use Days over group calculated column only. Sorry for the typo in the original message. When I pull this calculated column in X-axis and against amt due balance(y-axis) the chart collects all balance in 0-30 days aging bucket and do not display other buckets.

Sunila_0-1695713227593.png

 

Hi @Sunila chart is just visual, reflecting table data. Go to cal.column and check data definition to resolve issue





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






some_bih
Super User
Super User

Hi @Sunila create calculated column for "Days over due groups", not measure. Later, slice and dice as you wish.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors