Forum Discussion
cheid_4838
Helper IV
1 year agoNumber range ordering
I have the below table where the percentages (4%, 5%, 10%, 15%, etc) were created by a switch statement. I then grouped those percentages into ranges as shown below. To get the ranges in the correc...
- 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!
cheid_4838
Helper IV
1 year agoI 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.
Idle SubGroup = SWITCH(
TRUE(),
'Long Idle'[Long Idle %] <.05,"4% - 5%",
'Long Idle'[Long Idle %] >=.05 && 'Long Idle'[Long Idle %] <.10, "4% - 5%",
'Long Idle'[Long Idle %] >=.10 && 'Long Idle'[Long Idle %] <.15, "10% - 20%",
'Long Idle'[Long Idle %] >=.15 && 'Long Idle'[Long Idle %] <.20, "10% - 20%",
'Long Idle'[Long Idle %] >=.20 && 'Long Idle'[Long Idle %] <.40, "10% - 20%",
'Long Idle'[Long Idle %] >=.40 && 'Long Idle'[Long Idle %] <.60, "40% - 100%",
'Long Idle'[Long Idle %] >=.60 && 'Long Idle'[Long Idle %] <.80, "40% - 100%",
'Long Idle'[Long Idle %] >.80, "40% - 100%",
"OTHER")
Sort Order
Order =
SWITCH(
TRUE(),
'Long Idle'[Idle SubGroup] = "4% - 5%", 1,
'Long Idle'[Idle SubGroup] = "10% - 20%", 2,
'Long Idle'[Idle SubGroup] = "40% - 100%", 3,
0)
Shravan133
Super User
1 year agocreate 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.