Power Query Output.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Date | Amount | Description | ||
2 | 31/10/2023 | $11.61 | Sakuramobairu | ||
3 | 1,100.00 JPY Rate:0.010554 | ||||
4 | 02/11/2023 | $83.23 | Holiday Inn Santiago A Santiago | ||
5 | 47,016.00 CLP Rate:0.001770 | ||||
6 | 02/11/2023 | $25.77 | Whittakers | ||
7 | 28.03 NZD Rate:0.919372 | ||||
8 | 02/11/2023 | $20.23 | Vantage Bar | ||
9 | 22.00 NZD Rate:0.919545 | ||||
10 | 09/11/2023 | $16.06 | Refugio Dickson Vertic Pto. Natales | ||
11 | 9,326.00 CLP Rate:0.001722 | ||||
12 | |||||
13 | |||||
14 | Preferred way of data presentation | ||||
15 | 31/10/2023 | $11.61 | Sakuramobairu 1,100.00 JPY Rate:0.010554 | ||
16 | |||||
Sheet1 |
Book1 | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Date | Amount | Description | ||
2 | 10/31/2023 | $11.61 | Sakuramobairu | ||
3 | 1,100.00 JPY Rate:0.010554 | ||||
4 | 11/2/2023 | $83.23 | Holiday Inn Santiago A Santiago | ||
5 | 47,016.00 CLP Rate:0.001770 | ||||
6 | 11/2/2023 | $25.77 | Whittakers | ||
7 | 28.03 NZD Rate:0.919372 | ||||
8 | 11/2/2023 | $20.23 | Vantage Bar | ||
9 | 22.00 NZD Rate:0.919545 | ||||
10 | 11/9/2023 | $16.06 | Refugio Dickson Vertic Pto. Natales | ||
11 | 9,326.00 CLP Rate:0.001722 | ||||
12 | |||||
13 | |||||
14 | Date | Amount | New Description | ||
15 | 10/31/2023 | 11.61 | Sakuramobairu 1,100.00 JPY Rate:0.010554 | ||
16 | 11/2/2023 | 83.23 | Holiday Inn Santiago A Santiago 47,016.00 CLP Rate:0.001770 | ||
17 | 11/2/2023 | 25.77 | Whittakers 28.03 NZD Rate:0.919372 | ||
18 | 11/2/2023 | 20.23 | Vantage Bar 22.00 NZD Rate:0.919545 | ||
19 | 11/9/2023 | 16.06 | Refugio Dickson Vertic Pto. Natales 9,326.00 CLP Rate:0.001722 | ||
Sheet1 |
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"Amount", Currency.Type}}),
#"Filled Down" = Table.FillDown(#"Changed Type",{"Date"}),
#"Added Custom" = Table.AddColumn(#"Filled Down", "Custom", each if [Amount]= null then [Description] else null),
#"Filled Up" = Table.FillUp(#"Added Custom",{"Custom"}),
#"Filtered Rows" = Table.SelectRows(#"Filled Up", each ([Amount] <> null)),
#"Merged Columns" = Table.CombineColumns(#"Filtered Rows",{"Description", "Custom"},Combiner.CombineTextByDelimiter(" ", QuoteStyle.None),"New Description")
in
#"Merged Columns"