Hi,
I am wondering if there is a way to incorporate an IIF statement into a Order By statement. I am trying to set up a query so that when X>0, field Y sorts descending but when X<0 field Y sort ascending.
For context, I am trying to show the top 5 absolute values, and the top drivers of those positions. So for example if I have a large negative result, what are the largest negative drivers of that result and vice versa.
Any help would be appreciated. Thanks.
I am wondering if there is a way to incorporate an IIF statement into a Order By statement. I am trying to set up a query so that when X>0, field Y sorts descending but when X<0 field Y sort ascending.
For context, I am trying to show the top 5 absolute values, and the top drivers of those positions. So for example if I have a large negative result, what are the largest negative drivers of that result and vice versa.
Any help would be appreciated. Thanks.