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

CREATE COLUMN THAT REFERENCES SPECIFIC CELL

I have imported a crazy excel file into PBI which I need to model. Column 1 Row 1 holds a date, the headers are all on Row 2.

So I want to create a [Date] column which points to Column 1 Row 1 and then I can promote headers. 

 

How do I do this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I figured it out.

1. Insert a step (Custom1) to pull your date

= Record.Field(ChangedType{0},"Column1")

2. Inset a step (Custom2) to return your table by pointing to the step before Custom1

= ChangedType

 3. Add a Custom Column which simply points to Custom1

= Table.AddColumn(Custom2, "Date", each Custom1)

  

View solution in original post

3 REPLIES 3
johnt75
Super User
Super User
amitchandak
Super User
Super User

@Anonymous , Take rows 1 and column into a different table. Delete everything. In another table keep everything other than date 1 and column. In both tables add a column with the same value and merge these two tables using that

Anonymous
Not applicable

I figured it out.

1. Insert a step (Custom1) to pull your date

= Record.Field(ChangedType{0},"Column1")

2. Inset a step (Custom2) to return your table by pointing to the step before Custom1

= ChangedType

 3. Add a Custom Column which simply points to Custom1

= Table.AddColumn(Custom2, "Date", each Custom1)

  

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.