Top and Bottom N filtering
Hi,
I want to be able to filter my matrix to show both the top 1 and bottom 1 value in the same table. Is there a way to do this? Currently I can only see that its possible to do one or the other using top N and bottom N but not have both in the same table. The in-between filter doesn't give the desired outcome as you can only filter on actual values.
Thanks
3 replies
-
Hi ,
You cannot currently do this using the filter wizard (but you will be able too in a future version).Instead you'll need to create a custom list. The idea is to create a custom list that is built off 2 other custom lists, one for the top and one for the bottom.
You can do this in 1 go, using scripting, by writing:{Top([Table].[Column].allmembers, 1), Bottom([Table].[Column].allmembers, 1)}
Using these functions:
https://help.pyramidanalytics.com/Content/Root/MainClient/apps/Formulate/Lists/FilterFunctions/Bottom_Count.htm
https://help.pyramidanalytics.com/Content/Root/MainClient/apps/Formulate/Lists/FilterFunctions/TopCount.htm
Or by creating 3 lists using the graphical editor:
https://help.pyramidanalytics.com/Content/Root/MainClient/apps/Formulate/Lists/Lists.htm
Imbar -
Hi, thanks for the above.
I have an added complexity to the query i need to pull as the top 10 is based on the first column and then the top 1 and bottom 1 need to be based on the ppt change.
I have made two scripts one to pull the top 10
And then the next one to get the top and bottom from the made list
However when i apply it, it doesn't pull through the correct elements based on the data i have in my discovery.
Is there a different solution to this?