Hello,
I am trying to map a raw data (about 1600 rows) with multiple unique IDs on rows due to the different charges on a ledger as shown on the attached test file. Goal is to have one unique ID on each row with correct name tied to it, showing SUM for each column based on the charges in the column per the unique ID.
Thank you.
Marcus
Mapping from raw data with multiple repeating IDs
-
- Lounger
- Posts: 37
- Joined: 04 Oct 2023, 14:49
Mapping from raw data with multiple repeating IDs
You do not have the required permissions to view the files attached to this post.
-
- Administrator
- Posts: 79676
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Mapping from raw data with multiple repeating IDs
Welcome to Eileen's Lounge!
I'll take a look after dinner (European time)
I'll take a look after dinner (European time)
Best wishes,
Hans
Hans
-
- Lounger
- Posts: 37
- Joined: 04 Oct 2023, 14:49
Re: Mapping from raw data with multiple repeating IDs
Thank you very much.
-
- Administrator
- Posts: 79676
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Mapping from raw data with multiple repeating IDs
See the attached version.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- Lounger
- Posts: 37
- Joined: 04 Oct 2023, 14:49
Re: Mapping from raw data with multiple repeating IDs
Perfect! Now I can see, where I was making mistakes. Thank you very much. I truly appreciate it! Need to start taking some mapping Excel courses to learn more.
-
- StarLounger
- Posts: 58
- Joined: 10 Mar 2021, 22:57
Re: Mapping from raw data with multiple repeating IDs
with Power Query
Code: Select all
// Table1
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
Group = Table.Group(Source, {"ID", "Name"}, {{"Pay", each List.Sum([Payments]), type nullable number}, {"Dep", each List.Sum([Deposits]), type nullable number}}),
Subtract = Table.AddColumn(Group, "Subtraction", each [Dep] - [Pay], type number)
in
Subtract
You do not have the required permissions to view the files attached to this post.
-
- StarLounger
- Posts: 58
- Joined: 10 Mar 2021, 22:57
Re: Mapping from raw data with multiple repeating IDs
You need to use Data - From Table , then in PQ Editor: select two first columns choose Group , in Advanced mode add two aggregation (sum) appropriate columns) then simply subtract these two columns and on the end load result to the sheet
as I see you don't know what Power Query is so try to read here: https://learn.microsoft.com/en-us/power-query/
btw. this is NOT a VBA !
as I see you don't know what Power Query is so try to read here: https://learn.microsoft.com/en-us/power-query/
btw. this is NOT a VBA !
-
- Lounger
- Posts: 37
- Joined: 04 Oct 2023, 14:49
Re: Mapping from raw data with multiple repeating IDs
Thank you. That is correct, I have no clue what Power Query is; although, I do appreciate very much the link.hamster wrote: ↑05 Oct 2023, 08:37You need to use Data - From Table , then in PQ Editor: select two first columns choose Group , in Advanced mode add two aggregation (sum) appropriate columns) then simply subtract these two columns and on the end load result to the sheet
as I see you don't know what Power Query is so try to read here: https://learn.microsoft.com/en-us/power-query/
btw. this is NOT a VBA !
Thank you again.
-
- StarLounger
- Posts: 58
- Joined: 10 Mar 2021, 22:57
Re: Mapping from raw data with multiple repeating IDs
You are welcome
-
- 2StarLounger
- Posts: 171
- Joined: 11 Jun 2012, 20:37
Re: Mapping from raw data with multiple repeating IDs
…or a bog standard Pivot table.
You do not have the required permissions to view the files attached to this post.
-
- Lounger
- Posts: 37
- Joined: 04 Oct 2023, 14:49
Re: Mapping from raw data with multiple repeating IDs
Thank you very much!