Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I am using Direct Query method to pull data from Oracle Server.
In the Original Query, I have sorted few columns and in Query Editor, I can see the same order as in the Original Query. But, when I drag all the fields into a table report. I am not getting the data order as in the Original Query.
Can anyone advise, how can i get the data order as in the original query.
Solved! Go to Solution.
I found a solution.
What I did was, I have created a custom column and Concatenated the required columns then put that custom column and sorted.
Hey,
I'm not sure what you mean by you don't get the same data order, I guess you are referencing the order of the rows.
The effect can be one of these
I guess you have to consider the following
Depending of the number of rows, ordering can be slow.
Regards,
Tom
Thanks Tom,
yes, i am referring to "order of the rows".
I guess, RankX won't work in Direct Query Mode.
Hey,
according to this list:
RANKX is one of the not optimized functions (for direct query), I just tested it and it works. I have no idea how this will behave from a performance perspective.
Regards,
Tom
Thank you again,
but, not working. I am getting the error that RANKX cannot be used on Direct Query.
I found a solution.
What I did was, I have created a custom column and Concatenated the required columns then put that custom column and sorted.
Hey, this is cool.
Maybe this post is of interest:
prior to the July release there has been an option to allow unrestricted measures (meaning allow more DAX functions in measures) using direct query.
Maybe you want to check if you have the "preview" feature "Composite Models" enabled.
Options -> Preview Features.
I tested RANKX in direct query mode against a SQL Server table without an error message.
Regards,
Tom
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |