Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
WonderCoding
Frequent Visitor

Create index column in DirectQuery mode

Hi all!

 

I have a simple problem that I can't find a way to solve and I haven't found anything related online. I have sorted data imported using DirectQuery mode and I need to create a index column, yet I can't use the add index column functionality as it only works on import mode.


Any way to add an index column in PowerQuery or do I need to add it on the source?

 

Best regards.

3 REPLIES 3
amitchandak
Super User
Super User

@WonderCoding , I doubt you can add that in direct query mode, Maybe add rank or row number in a database query

Hello @amitchandak,

 

Thanks for the reply. Will try using rank and last case I will go to the source.

 

When you say row number in a database query are you refering to importing the data using a SQL statment that adds the index?

@WonderCoding , for a few databases you can write a query in the direct query mode too, In that case, you can use some functions like row_number etc

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.