Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am having a hard time wrapping my head around the best way to merge this data and looking for a best practice approach.
Here is a sample of some raw data in an imported CSV. There are some common columns and uncommon ones.
CUSTOMER | CITY | STATE | INV | WEIGHT |
Customer A | HOUSTON | TX | 3 | 7 |
Customer A | HOUSTON | TX | 5 | 5 |
Customer B | DALLAS | TX | 10 | 23 |
Customer B | DALLAS | TX | 15 | 32 |
I am trying to consolidate into a single summed-up table summing the value like you would in excel SUMIF. I have tried making a distinct list of the customer names but It keeps saying I have a many to many relationship and unable to sum the values.
What is the best way to take the above imported data and end up with a consolidated table like the below that I can report on?
CUSTOMER | CITY | STATE | INV | WEIGHT |
Customer A | HOUSTON | TX | 8 | 12 |
Customer B | DALLAS | TX | 25 | 55 |
Solved! Go to Solution.
Considering Grouping the rows in PowerQuery.
= Table.Group(#"Changed Type", {"CUSTOMER", "CITY", "STATE"}, {{"INV", each List.Sum([INV]), type nullable number}, {"WEIGHT", each List.Sum([WEIGHT]), type nullable number}})
Considering Grouping the rows in PowerQuery.
= Table.Group(#"Changed Type", {"CUSTOMER", "CITY", "STATE"}, {{"INV", each List.Sum([INV]), type nullable number}, {"WEIGHT", each List.Sum([WEIGHT]), type nullable number}})
I have never done that before. Thank you! Would you still do that if it were a much larger table to clean up?
Hi @PeeWhy
if it were a much larger table, you can still use this way to clean up.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |