on 03-28-2017 10:25 AM
Hello, everyone.
Have you faced this qustion?
I've sorted a mearsure by Des,and the demission also set "only values with posted data".Like picture one.
but when I use DS_2.getMembers("VKBUR", 10) ,I can get 10 members,but those values wasn't I wanted.All of them was not I wanted that sorted in datasource.Like picture two.
My version is 16.4.0,datasource is OLAP.
Waiting for your help!
Thanks.
Jing
Jing,
If you can't set bottom 10 condition on your data source (sorry, I'm no HANA expert, so can't help with that) then you may need to resort to writing some JavaScript to sort your members in the correct order. Please have a look at this thread which shows code for sorting top 5 members. You will need to tweak it for you 10 bottom example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
looks like a condition -> bottom 10 -> try to apply such a condition and then do get.members
Grtz
Koen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check this URL,
Regards,
Vidhya.C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For more options, we have sorting option in Edit initial view, Data Source level and in Query Panel.
After sorting the dimension then you use the below code to filter your Top N / Bottom N data and then apply that Data source to your Column Chart.
var P= DS_1.getMembers("dimension", 10);
DS_1.setFilter("dimension",P);
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.