Forum Discussion
Indexing on SQL Server
- Anonymous7 years ago
Jimmy,
Thank you
Ed Dror
Hi odeddror,
If you connect to your sql server instance using import mode, you can add an additional index column in power query, click Query Editors-> Add Columns-> Index Column. If using direct query/live connection mode, you should create index column in your database because power bi doesn't allow users to create any custom columns in power query or calculate columns in DAX in direct query/live connection mode.
Regards,
Jimmy Tao
- Anonymous7 years agoNot applicable
Jimmy,
Thank you for the explanation, my question was should I create an index in SQL Server or not?
Is Power BI its own machanism to handle that?
Thanks
- v-yuta-msft7 years agoCommunity Support
Anonymous,
Thank you for the explanation, my question was should I create an index in SQL Server or not?
That's based on your requirement. For example, if you need to achieve some result in some measures based off the relationships between up and down rows, you can create an index column.
Is Power BI its own machanism to handle that?
Yes, like SQL script in SQL Server, you can also wirte Power Query or DAX function to use the index column.
Regards,
Jimmy Tao
- Anonymous7 years agoNot applicable
Thank you (I have difficulty to mak your answer - I'm getting authentication issue when I submit)
Oded Dror
- Anonymous7 years agoNot applicable
Jimmy,
Thank you
Ed Dror