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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
rpinxt
Solution Sage
Solution Sage

Put my UBD months in buckets of 3 months

I have a calculated column that gives my UBD in months (days divided by (365/12) )

Set it that everything below 1 gets 0 and everything above 24 gets 25 (wanted >24 but think to make groups bins that is not convenient).

 

So looks like this :

rpinxt_0-1726214479471.png

rpinxt_1-1726214486740.png

Now I want to used this values to get the Aging Bucket from this list :

rpinxt_2-1726214524544.png

So 1,xxx goes into "1-3", 10,32 goes into "10-12" etc.

And 0 goes to "0 Expired" and 25 is ">24"

 

What would be best practise for this?

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @rpinxt 
Please refer to the linked video about bins:
https://www.youtube.com/watch?v=PjHgi7X3_Bw&t=2s

If my answer was helpful please give me a Kudos and accept as a Solution.




 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

2 REPLIES 2
rpinxt
Solution Sage
Solution Sage

Ah thanks @Ritaf1983 this indeed helped me a lot.

Unfortunately you need to do it in Query editor and I cannot see my calculated column there.

So I deleted my calculated column and made that UBD Mth colunn in the editor first.

Then with the conditional column I was able to make my Aging Bucket "easily".

 

Just a small reminder that you need to be carefull what you type :

rpinxt_0-1726216727882.png

So 13-15 was no problem but if you type 10-12 it will want to convert it to a date.

Not direct but when you finish your column so suddenly you see dates and think....🤔

Then when I went back in I saw the conversion to dates.

Simple fix is for those you type '10-12 so with an apostrophe.

Ritaf1983
Super User
Super User

Hi @rpinxt 
Please refer to the linked video about bins:
https://www.youtube.com/watch?v=PjHgi7X3_Bw&t=2s

If my answer was helpful please give me a Kudos and accept as a Solution.




 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.