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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.