on 11-04-2015 11:39 AM
Hi,
I have created a variable which gives ranges of Amount.
$0-$25K
$25k-$50k
$50k-$100k
$100k-$250k
$250k-$500k
>$500K
so that we can check number of invoices coming in the range.
Since Range is a dimension values are getting sorted by itself and when I am doing custom sort system is not accepting custom sort.
It shows in below way:
$0-$25K
$100k-$250k
$250k-$500k
$25k-$50k
>$500K
$50k-$100k
Please guide to get correct sort order.
Thanks,
Ankit
Hi Ankit,
As you are using XI 4.1, you can use hide column feature.
Create a variable as follows:
[sort] = If ( [range] = "$0-$25K") Then 1
Else If ([range] = "$25k-$50k") Then 2
Else If ([range] = "$50k-$100k" )Then 3
Else If ([range] = "$100k-$250k") Then 4
Else If ([range] = "$250k-$500k" ) Then 5
Else 6
Put this [sort] column in your column, sort it in ascending order and hide it.
Hope it will help.
Regards,
Yuvraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yuvraj,
It has been long time to this issue since we got busy in some other work but now we have to provide solution of the issue.
I have used your suggestion and created Sort variable where I have given 1,2,3,4,5,6 for different range of values and made it hidden in support of other column beside it. but when I am filtering the tab using filter bar YEAR Object then this sort is getting failed.
Initially report shows
Hide ValRange NumberofSupplier
1 0-25 9
2 25-50 19
3 50-100 7
4 100-250 10
5 250-400 11
6 >400 2
After selecting Year filter = 2015 in Filter Bar
It becomes
Hide ValRange NumberofSupplier
5 250-400 5
1 0-25 7
2 25-50 16
3 50-100 6
4 100-250 3
6 >400 2
Please guide in resolving the issue.
Thanks and Regards,
Ankit
Hi Ankit ,
I think when you generated the report and applied custom sort for first time , the 5th value may not be existed .When this value comes into picture custom sort automatically resets and push the new value at some order .
Make sure your variable (generates 1,2,..) is a measure . Then just apply ascending order .
Hi Ankit,
Don't make that variable as a Measure, make it a Dimension. After that, add it to the table, sort on it (remember to remove sort on all other columns, else, it wouldn't work) and hide it by right clicking on that column -> Hide -> Hide dimension option.
Hope that helps.
Thanks,
Mahboob Mohammed
Hi Sateesh,
Can you further elaborate on how we can create detail variable of data type number in webi.
As I told in earlier thread
I am able to do below:
Hide ValRange NumberofSupplier
1 0-25 9
2 25-50 19
3 50-100 7
4 100-250 10
5 250-400 11
6 >400 2
But after selecting Year filter = 2015 on Filter Bar
It becomes
Hide ValRange NumberofSupplier
5 250-400 5
1 0-25 7
2 25-50 16
3 50-100 6
4 100-250 3
6 >400 2
I am not getting any idea why webi is behaving in such way.
I am moving towards the conclusion that webi confuses itself when we use multiple If....Elseif....Elseif....Elseif...Else but I need your vote of confidence to agree on my conclusion.
Otherwise, if we do have any solution then please guide me to resolve it.
Warm Regards,
Ankit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this SAP Note.Similar issue is mentioned.
Amit
Ok.
In same way I have created the variable so I think it is the reason I cannot do custom sort.
I have given A, B, C, D, E in
A$0-$25K
B$100k-$250k
C$250k-$500k
D$25k-$50k
E>$500K
F$50k-$100k
it helped me in sorting. Can we hide first character and keep applying the sort.
If yes can you tell how we can trim first character in variable.
Thanks,
Ankit
Did same thing but I have added linking from this table to another table so when I click on any cell for navigation then in input control it shows both variables as in:
Var_Spend1 = B$25K-50K
Var_Spend2 = $25K-50K
That can be annoying for users.
So I am looking for any other work around.
Thanks,
Ankit
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.