Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Source = Excel.Workbook(File.Contents("C:\Users\PeterReid\OneDrive\Blogs\development\BI\Ashley\currencies.xlsm"), null, true),
Portfolio_Table = Source{[Item="Portfolio",Kind="Table"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(Portfolio_Table,{{"CountryCode", type text}, {"Symbol", type text}, {"Last Trade Price Only", type number}, {"Last Trade Date", type text}}),
#"Removed Other Columns" = Table.SelectColumns(#"Changed Type",{"CountryCode", "Last Trade Price Only"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Other Columns",{{"Last Trade Price Only", "Rate"}}),
#"Indexed Table" = Table.AddKey( #"Renamed Columns", {"CountryCode"}, true)
#"Indexed Table"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment