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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
lastnn30
Post Patron
Post Patron

Group ages - then round the number

Hi

I managed to create bins to group the age. I do not want group like 19.00 or 30.50.

Instead I want groups without decimals like 19, 30, 42, 53 etc

How can I do that without using DAX. Thank you very much.

 

SNAG-0498.jpg

 

4 REPLIES 4
V-lianl-msft
Community Support
Community Support

Hi @lastnn30 ,

 

Maybe you can consider using power query,please refer to:

https://community.powerbi.com/t5/Community-Blog/Group-Bin-in-Power-Query/ba-p/1997205 


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

truptis
Community Champion
Community Champion

@lastnn30 , using DAX you can use TRUNC() 

Eg- TRUNC(19.00) will give you 19

It removes the decimal part.

So try using TRUNC(age)

 

If this helps then please mark it as a solution & hit the thumbs up. Thanks.

amitchandak
Super User
Super User

@lastnn30 , Please create age as whole number and then create bins

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you very much for your reply. I made sure the age is "whole number" but still got the same result. I am pasting step by step of what I did, please see below. Thank you once again.

SNAG-0505.jpgSNAG-0504.jpgSNAG-0503.jpgSNAG-0502.jpgSNAG-0501.jpg

Helpful resources

Announcements
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.