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!
Try this:
SortOrder =
SWITCH(
TRUE(),
'Long Idle'[Long Idle %] < .05, 1,
'Long Idle'[Long Idle %] >= .05 && 'Long Idle'[Long Idle %] < .10, 2,
'Long Idle'[Long Idle %] >= .10 && 'Long Idle'[Long Idle %] < .15, 3,
'Long Idle'[Long Idle %] >= .15 && 'Long Idle'[Long Idle %] < .20, 4,
'Long Idle'[Long Idle %] >= .20 && 'Long Idle'[Long Idle %] < .40, 5,
'Long Idle'[Long Idle %] >= .40 && 'Long Idle'[Long Idle %] < .60, 6,
'Long Idle'[Long Idle %] >= .60 && 'Long Idle'[Long Idle %] < .80, 7,
'Long Idle'[Long Idle %] > .80, 8,
9 -- "OTHER"
)
After creating the SortOrder column:
- Go to the Fields pane.
- Select the
Idle Groupingcolumn. - In the Column Tools tab on the ribbon, click Sort by Column.
- Select the
SortOrdercolumn.
This ensures the ranges in Idle Grouping are displayed in the correct order in visuals.
I created this logic to create the subgroup and then the second logic to create the order. When I do this I get This error message.
- Shravan1331 year agoSuper User
create a column through power query(transform data) to avoid circular dependancy error.
- Open Power Query Editor
- Add a new column for sorting:
- Go to the Add Column tab.
- Use a custom formula or conditional column logic.