Forum Discussion

obriaincian's avatar
obriaincian
Resolver I
3 years ago
Solved

How to import excel creation date from sharepoint into data table in Power BI

Hi,   I have an excel sheet in sharepoint that I want to import into power bi, I would also like to create a column once it's imported to store the date the file was created.   I have several ste...
  • OwenAuger's avatar
    3 years ago

    Hi obriaincian 

    You can add a custom column using the Custom Column dialog box, where the expression to use for the column references the "Filtered Rows2" step, Date Created column first row.

    The formula to enter in the dialog box would be:

    = #"Filtered Rows2"[Date created]{0}

     

    The code in the formula bar would be something like this:

    = Table.AddColumn(#"Added Custom", "Date created", each #"Filtered Rows2"[Date created]{0}, type datetime)

    Here's a screenshot from a test query I created:

    Does this work?

    Regards,