Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Karahs
Partner - Creator
Partner - Creator

Inline Load Sorting

Hello All,

I have the following inline table:

Dim1:
Load * Inline
[
_Dim1No,Dim1
1,DateOfBusiness
2,Month
3,Week
4,City
];

I want the same order as above in my dimension (always selected one) on selection bar.

Dim.PNG

As above image i am not getting it order. Can anyone suggest any way to sort the inline load?

Thanks 

 

Labels (4)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can't get the same order in the selection bar. A filter pane has a Sorting section in its properties pane, but the selection bar cannot be changed. You could create a new field using the Dual function:

Dim1:
Load *, dual(Dim1,_Dim1No)as Dim2 Inline
[
_Dim1No,Dim1
1,DateOfBusiness
2,Month
3,Week
4,City
];

Dim2 will be a  numeric field with textual 'formats' for each number. Try it and see if it works for you.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
tresesco
MVP
MVP

Try loading using dual(), like:

Dim1:
Load 

_Dim1No,

Dual(Dim1, _Dim1No)  AS Dim1

Inline
[
_Dim1No,Dim1
1,DateOfBusiness
2,Month
3,Week
4,City
];

Gysbert_Wassenaar

You can't get the same order in the selection bar. A filter pane has a Sorting section in its properties pane, but the selection bar cannot be changed. You could create a new field using the Dual function:

Dim1:
Load *, dual(Dim1,_Dim1No)as Dim2 Inline
[
_Dim1No,Dim1
1,DateOfBusiness
2,Month
3,Week
4,City
];

Dim2 will be a  numeric field with textual 'formats' for each number. Try it and see if it works for you.


talk is cheap, supply exceeds demand
dhasharadh
Creator III
Creator III

go to sorting options and uncheck A-> Z and check Load order.
Karahs
Partner - Creator
Partner - Creator
Author

Thanks Gysbert_Wassenaar