Forum Discussion
Rich_P
7 years agoHelper II
Define Column Order using SELECTCOLUMNS
I'm using SELECTCOLUMNS to project a subset of fields from my data model onto an Excel worksheet. The example uses the expression below to force the columns to appear in the order I want them display...
- 7 years ago
Hi Rich_P ,
As this case, the ORDER BY clause is part of the EVALUATE statement and the drillthrough expression just accepts a table expression. One possible work around would be to wrap your SELECTCOLUMNS in a TOPN. You could then either set a reasonable limit on the drillthrough to stop people from trying to extract too much data or you could just put a huge number for the "N" amount (eg. 2 billion) so that it just does sorting, but does not realistically limit the rows.
RichardCalvertX
2 years agoNew Member
This question is about column order but the accepted answer is about data (row) order. How can the answer be 'correct'?