Forum Discussion
Number range ordering
- 1 year ago
Hi cheid_4838
Or you can have seperate table with idle subgrouping and sorting order.
create relationship between your idle sub grouping an dyou table sub grouping.
use idle subgrouping from newly created seperate table. make sure you apply sort by order step on idle sub groping (new table).
use only idle sub grouping from new table rest column from your old table.
I hope this might help you!
Hi cheid_4838
For your understanding you Idle sub grouping is sorting based on text column not Numeric so sorting order is 1,4,4 this is what it is following because of alphanumeric sorting .
Taking 1 element of every word then sort.
I hope this might give you clearity.
That is what I am having issues with. I need these ranges put in the correct order, but nothing is working. I have tried everything from using switch to create the order to grouping. Each time I get a circular dependency error message to not being able to compare text to numbers. Not sure what else my options are.
- Uzi20191 year agoCommunity Champion
hi cheid_4838
can you change your numeric text
Idle SubGroup = SWITCH(TRUE(),'Long Idle'[Long Idle %] <.05,"1. 4% - 5%",'Long Idle'[Long Idle %] >=.05 && 'Long Idle'[Long Idle %] <.10, "1. 4% - 5%",'Long Idle'[Long Idle %] >=.10 && 'Long Idle'[Long Idle %] <.15, "2. 10% - 20%",'Long Idle'[Long Idle %] >=.15 && 'Long Idle'[Long Idle %] <.20, "2. 10% - 20%",'Long Idle'[Long Idle %] >=.20 && 'Long Idle'[Long Idle %] <.40, "2. 10% - 20%",'Long Idle'[Long Idle %] >=.40 && 'Long Idle'[Long Idle %] <.60, "3. 40% - 100%",'Long Idle'[Long Idle %] >=.60 && 'Long Idle'[Long Idle %] <.80, "3. 40% - 100%",'Long Idle'[Long Idle %] >.80, "4. 40% - 100%","OTHER")Try this it automatically sort without creating other sorting measure.- cheid_48381 year agoHelper IV
I was thinking that, but trying to avoid putting a leading number to drive the sort. Thanks for your help.
- Uzi20191 year agoCommunity Champion
Hi cheid_4838
Or you can have seperate table with idle subgrouping and sorting order.
create relationship between your idle sub grouping an dyou table sub grouping.
use idle subgrouping from newly created seperate table. make sure you apply sort by order step on idle sub groping (new table).
use only idle sub grouping from new table rest column from your old table.
I hope this might help you!