Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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! 😁
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |