Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I would like to group employee age in groups of 10 starting at 15.
This calculated dimension:
=dual(replace(class(Age, 10), '<= x <','-'),class(Age, 10))
gives this:
thank you
try this
class(Age,10,'-',5 )
try this
class(Age,10,'-',5 )
Thanks Prashant.
In addition to the suggestion from @PrashantSangle the third parameter replaced only the x but not the <= > chars. Therefore the replace within a dual() is further needed if a different view is wanted. But the fourth parameter is useful to adjust the bucket-size to a fix offset-value.
On top of it you may wrap the Age with a rangemax() and/or rangemin() if the start- and end-bucket should be limited to a certain number of buckets and may in the end looking like:
= dual(replace(class(rangemin(66, rangemax(15, Age)),10,'',5), ' <= < ', ' - '),
class(rangemin(66, rangemax(15, Age)),10,'',5))
Thank you Marcus.
Replacing '-' with 'X' in Prashant's solution is fine with me.