Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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 t...
  • Anonymous's avatar
    Anonymous
    4 years ago

    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)