Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
@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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
51 | |
36 | |
26 |
User | Count |
---|---|
85 | |
55 | |
45 | |
44 | |
36 |