Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to reference Text in a Cell to create a new column

I have a Workbook where I pull data from a website monthly, with multiple worksheets.  Each Worksheet in cell "A4" references the Time Period of the Data pulled. Example:   Instead of trying...
  • AlB's avatar
    5 years ago

    Hi Anonymous 

    SheetCellA4 =YourWorkSheet[Column1]{3}

    Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

    Contact me privately for support with any larger-scale BI needs, tutoring, etc.

    Cheers 

     

  • Jimmy801's avatar
    Jimmy801
    5 years ago

    Hello Anonymous 

     

    you are using an approach of accessing a xlsx-file even you are accessing a csv-file. In your case the Source-step will give you already the final table. So use this code instead

    let
        Source = Csv.Document(File.Contents("C:\Users\cday\OneDrive - udfinc.com\M6 Scorecard\Data Pulls\4 Wk Data.csv"),[Delimiter=",", Columns=18, Encoding=1252, QuoteStyle=QuoteStyle.None]),
        #"Added Custom" = Table.AddColumn(Source, "Custom", each Query1(Source))
    in
        #"Added Custom"

     

    If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
    Kudoes are nice too

    Have fun

    Jimmy