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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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