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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JimB-GA
Helper III
Helper III

Creating an index column

Hello BI community,

 

I have an Excel file I am loading into BI that lacks a unique identifier.  I would like to create an index column.

 

Following is an example of the Excel file:

 

Date	Description
3/29/2019	PRUDENTIAL ABSOLUTE RETURN BOND FUND CLASS A
3/29/2019	TEMPLETON GLOBAL INCOME FUND
3/29/2019	BLACKROCK CORE BOND TRUST
3/28/2019	ALPHACENTRIC INCOME OPPORTUNITIES FUND CLASS A
3/27/2019	PROSHARES TR ULTRASHORT 20+ YR TREAS NEW
3/27/2019	NUVEEN ENHANCED MUNICIPAL VALUE FD
3/27/2019	PROSPECT CAPITAL CORPORATION
3/27/2019	BLACKROCK CORE BOND TRUST
3/27/2019	AMG FQ US EQUITY FUND CLASS N
3/26/2019	OPPENHEIMER ROCHESTER HIGH YIELD MUNICIPAL FUND CLASS A
3/26/2019	ISHARES TR RUSSELL 2000 ETF
3/25/2019	VanTar2025
3/25/2019	VanTar2025
3/22/2019	SELECT SECTOR SPDR TR FINANCIAL

I would like a sequential index column in the Power BI table.

 

I appreciate your assistance.

 

Regards

 

JimB-Ga

1 ACCEPTED SOLUTION
adityavighne
Continued Contributor
Continued Contributor

create new column in the


@JimB-GA wrote:

Hello BI community,

 

I have an Excel file I am loading into BI that lacks a unique identifier.  I would like to create an index column.

 

Following is an example of the Excel file:

 

Date	Description
3/29/2019	PRUDENTIAL ABSOLUTE RETURN BOND FUND CLASS A
3/29/2019	TEMPLETON GLOBAL INCOME FUND
3/29/2019	BLACKROCK CORE BOND TRUST
3/28/2019	ALPHACENTRIC INCOME OPPORTUNITIES FUND CLASS A
3/27/2019	PROSHARES TR ULTRASHORT 20+ YR TREAS NEW
3/27/2019	NUVEEN ENHANCED MUNICIPAL VALUE FD
3/27/2019	PROSPECT CAPITAL CORPORATION
3/27/2019	BLACKROCK CORE BOND TRUST
3/27/2019	AMG FQ US EQUITY FUND CLASS N
3/26/2019	OPPENHEIMER ROCHESTER HIGH YIELD MUNICIPAL FUND CLASS A
3/26/2019	ISHARES TR RUSSELL 2000 ETF
3/25/2019	VanTar2025
3/25/2019	VanTar2025
3/22/2019	SELECT SECTOR SPDR TR FINANCIAL

I would like a sequential index column in the Power BI table.

 

I appreciate your assistance.

 

Regards

 

JimB-Ga



@JimB-GA wrote:

Hello BI community,

 

I have an Excel file I am loading into BI that lacks a unique identifier.  I would like to create an index column.

 

Following is an example of the Excel file:

 

Date	Description
3/29/2019	PRUDENTIAL ABSOLUTE RETURN BOND FUND CLASS A
3/29/2019	TEMPLETON GLOBAL INCOME FUND
3/29/2019	BLACKROCK CORE BOND TRUST
3/28/2019	ALPHACENTRIC INCOME OPPORTUNITIES FUND CLASS A
3/27/2019	PROSHARES TR ULTRASHORT 20+ YR TREAS NEW
3/27/2019	NUVEEN ENHANCED MUNICIPAL VALUE FD
3/27/2019	PROSPECT CAPITAL CORPORATION
3/27/2019	BLACKROCK CORE BOND TRUST
3/27/2019	AMG FQ US EQUITY FUND CLASS N
3/26/2019	OPPENHEIMER ROCHESTER HIGH YIELD MUNICIPAL FUND CLASS A
3/26/2019	ISHARES TR RUSSELL 2000 ETF
3/25/2019	VanTar2025
3/25/2019	VanTar2025
3/22/2019	SELECT SECTOR SPDR TR FINANCIAL

I would like a sequential index column in the Power BI table.

 

I appreciate your assistance.

 

Regards

 

JimB-Ga




same table with below DAX

 

generate = GENERATESERIES(1,100,1)

View solution in original post

4 REPLIES 4
adityavighne
Continued Contributor
Continued Contributor

create new column in the


@JimB-GA wrote:

Hello BI community,

 

I have an Excel file I am loading into BI that lacks a unique identifier.  I would like to create an index column.

 

Following is an example of the Excel file:

 

Date	Description
3/29/2019	PRUDENTIAL ABSOLUTE RETURN BOND FUND CLASS A
3/29/2019	TEMPLETON GLOBAL INCOME FUND
3/29/2019	BLACKROCK CORE BOND TRUST
3/28/2019	ALPHACENTRIC INCOME OPPORTUNITIES FUND CLASS A
3/27/2019	PROSHARES TR ULTRASHORT 20+ YR TREAS NEW
3/27/2019	NUVEEN ENHANCED MUNICIPAL VALUE FD
3/27/2019	PROSPECT CAPITAL CORPORATION
3/27/2019	BLACKROCK CORE BOND TRUST
3/27/2019	AMG FQ US EQUITY FUND CLASS N
3/26/2019	OPPENHEIMER ROCHESTER HIGH YIELD MUNICIPAL FUND CLASS A
3/26/2019	ISHARES TR RUSSELL 2000 ETF
3/25/2019	VanTar2025
3/25/2019	VanTar2025
3/22/2019	SELECT SECTOR SPDR TR FINANCIAL

I would like a sequential index column in the Power BI table.

 

I appreciate your assistance.

 

Regards

 

JimB-Ga



@JimB-GA wrote:

Hello BI community,

 

I have an Excel file I am loading into BI that lacks a unique identifier.  I would like to create an index column.

 

Following is an example of the Excel file:

 

Date	Description
3/29/2019	PRUDENTIAL ABSOLUTE RETURN BOND FUND CLASS A
3/29/2019	TEMPLETON GLOBAL INCOME FUND
3/29/2019	BLACKROCK CORE BOND TRUST
3/28/2019	ALPHACENTRIC INCOME OPPORTUNITIES FUND CLASS A
3/27/2019	PROSHARES TR ULTRASHORT 20+ YR TREAS NEW
3/27/2019	NUVEEN ENHANCED MUNICIPAL VALUE FD
3/27/2019	PROSPECT CAPITAL CORPORATION
3/27/2019	BLACKROCK CORE BOND TRUST
3/27/2019	AMG FQ US EQUITY FUND CLASS N
3/26/2019	OPPENHEIMER ROCHESTER HIGH YIELD MUNICIPAL FUND CLASS A
3/26/2019	ISHARES TR RUSSELL 2000 ETF
3/25/2019	VanTar2025
3/25/2019	VanTar2025
3/22/2019	SELECT SECTOR SPDR TR FINANCIAL

I would like a sequential index column in the Power BI table.

 

I appreciate your assistance.

 

Regards

 

JimB-Ga




same table with below DAX

 

generate = GENERATESERIES(1,100,1)

Thanks.  I tried this and received the following error message:

 

A table of multiple values was supplied where a single value was expected.

adityavighne
Continued Contributor
Continued Contributor

Ok...just follow below adding Index column in the query editor.

 

Capture.PNG

 

AlB
Community Champion
Community Champion

Hi @JimB-GA 

You can do that easily in the query editor. Go to Add Column --> Add index column  

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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