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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Traditional database table indexing VS Power Query (and DAX) Index columns

Hi all,

I do not believe this question has been asked on here (apoloiges if it has).

 

I understand the benefits of using Indexed columns in a traditional database table to optimise the retrieval of data. For example, placing an Index on columns typically used for WHERE and JOIN clauses will aid the finding of row positions.

 

There is an option in Power Query to create an Index Column (Add Column > Index Column). However as far as I am aware all this does is create an additional, incremental column that will provide full unqiueness for the row in the Power Query dataset. The benefit I can see in this is that Power BI, is an aggregation engine will, by default, remove duplicates. By having this Index Column present and used in the aggregation the row shall show as unique and not be considered as a duplicate and therefore included in the calculation.

 

Clearly, the use of the term 'Index' in a traditional database sense and Power Query are different, and serve very different functions. The same will apply to creating an Index column using DAX. The use in Power Query and DAX is very different from an Index in a database.

 

Am I correct in my understanding?

Is there an Index function in Power Query or DAX that functions like a traditional database Index?

When should I use an Index Column (as described) in Power Query and DAX (other than the single reason I mentioned (i.e. to provide row uniqueness))?

Thanks in advance.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

As far as I know, the index column just provides a sequential number. Besides, you may take a look at Power BI and DirectQuery.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

As far as I know, the index column just provides a sequential number. Besides, you may take a look at Power BI and DirectQuery.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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