Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
So I have a column, which has value ranges from 0 to 1 million.
I want to create a calculated column that will create intervals per 500. I know you can achieve this goal by using a switch, but it's a bit much to do this like that.
Is there any other method?
Solved! Go to Solution.
Hey @Anonymous ,
you can do that without SWITCH.
Like this you would create segments in 500 steps (0-500 would be segment 500, 501-1000 would be segment 100, etc.):
Segment =
(
ROUNDDOWN(
myTable[myNumber] / 500,
0
) + 1
) * 500
Hey @Anonymous ,
you can do that without SWITCH.
Like this you would create segments in 500 steps (0-500 would be segment 500, 501-1000 would be segment 100, etc.):
Segment =
(
ROUNDDOWN(
myTable[myNumber] / 500,
0
) + 1
) * 500
Great thank you. Sometimes it's so simple you don't think about it! 😁
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!