Forum Discussion
Y- axis Range with intervals
- Anonymous5 years ago
Hi Nazia786,
You can add a calculated column to calculate with raw value rate and store it in a variable, then you can use this to dynamic define the group range based on the variable.
For the end part of the ranges that not similar to other common calculations, you can add if statements to check these excepted scenarios and write specific expressions to handle them.Below is the sample formula, you can try it if helps:
Dynamic range = VAR _unit = 10 VAR _rate = INT ( DIVIDE ( [Amount], _unit ) ) RETURN IF ( _rate >= 40, "400 to 410", _rate * _unit & " to " & ( _rate + 1 ) * _unit )Regards,
Xiaoxin Sheng
Hi Nazia786,
You can add a calculated column to calculate with raw value rate and store it in a variable, then you can use this to dynamic define the group range based on the variable.
For the end part of the ranges that not similar to other common calculations, you can add if statements to check these excepted scenarios and write specific expressions to handle them.
Below is the sample formula, you can try it if helps:
Dynamic range =
VAR _unit = 10
VAR _rate =
INT ( DIVIDE ( [Amount], _unit ) )
RETURN
IF ( _rate >= 40, "400 to 410", _rate * _unit & " to " & ( _rate + 1 ) * _unit )
Regards,
Xiaoxin Sheng