From the course: Excel Business Intelligence: Power Query

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Add index and conditional columns with Power Query

Add index and conditional columns with Power Query - Microsoft Excel Tutorial

From the course: Excel Business Intelligence: Power Query

Start my 1-month free trial

Add index and conditional columns with Power Query

- [Instructor] All right, going to show you two more types of column calculations in Power Query. The first is super simple. It's called an index column. So in the Add Column menu, you'll see it right here. Index column, all it does is it creates a list of sequential values that you can use to identify each unique row in a table. And you can determine whether you want that to start with a zero or a one. These are often used to create unique ids that can be used to form relationships between tables. So we've been hinting at that quite a bit. Trust me, we're going to talk a lot about it in the Data Modeling 101 section and these should look pretty familiar. We had id columns that were formatted just like this for each of the look-up tables that we've already loaded. So the customer look-up, the store look-up, the product look-up. And an index column calculation or tool is another way to create those just from scratch. The second tool I want to show you is an interesting one. It's a…

Contents