Forum Discussion
easy way to categorize data based on ranges
- 8 years ago
Hi OH,
Based on my test, you could refer to below steps:
Sample data:
Create a calculated column:
Type = IF('Table1'[Value]<=0.1,1, IF('Table1'[Value]<=0.2,2, IF('Table1'[Value]<=0.5,3, IF('Table1'[Value]<=1,4))))IF you want to adapt to the other column, just modify the column name in the formula(see the [Value] changed to the [Length]).
Type2 = IF('Table1'[Length]<=0.1,1, IF('Table1'[Length]<=0.2,2, IF('Table1'[Length]<=0.5,3, IF('Table1'[Length]<=1,4))))You can also download the PBIX file to have a view.
Regards,
Daniel He
Hi OH,
Based on my test, you could refer to below steps:
Sample data:
Create a calculated column:
Type = IF('Table1'[Value]<=0.1,1,
IF('Table1'[Value]<=0.2,2,
IF('Table1'[Value]<=0.5,3,
IF('Table1'[Value]<=1,4))))IF you want to adapt to the other column, just modify the column name in the formula(see the [Value] changed to the [Length]).
Type2 = IF('Table1'[Length]<=0.1,1,
IF('Table1'[Length]<=0.2,2,
IF('Table1'[Length]<=0.5,3,
IF('Table1'[Length]<=1,4))))You can also download the PBIX file to have a view.
Regards,
Daniel He
Hello Daniel
Thank you as well for the explanations. Someone else has already answered my other post but you open another way of solution.
I will try both and see what is easier.
Best regards
Olaf