jeff4smith
New Member
- Joined
- Jan 4, 2021
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
I have a Query that includes a column with list of last names, i.e. Smith, Jones, etc. In my worksheet there is a named range of Week_Smith, Week_Jones, etc and this named range is a single cell, which contains a date. I would like to add a new column to the Query to return the named range of each person. I was able to create a conditional column that has the correct named range using the code below, but I am not sure how to instead return the value of that named range.
#"Inserted Merged Column" = Table.AddColumn(#"Changed Type", "Merged", each Text.Combine({"Week_", [Name]}), type text),
#"Inserted Merged Column" = Table.AddColumn(#"Changed Type", "Merged", each Text.Combine({"Week_", [Name]}), type text),
Named_Range | Name | Highlights |
Week_Smith | Smith | First highlight |
Week_Smith | Smith | Second highlight |
Week_Smith | Smith | Third highlight |
Week_Jones | Jones | First highlight |
Week_Jones | Jones | Second highlight |
Week_Jones | Jones | Third highlight |