Hi Team,
I'm looking for help with Power Query to achieve the following...
Here's my data:
[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]Product[/TH]
[TH]Type[/TH]
[TH]Sales[/TH]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Bag[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Box[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Bag[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]Bunch[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Bag[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Box[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want to extract the records for each Product where the biggest Sales have taken place. The result should be as follows:
[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]Product[/TH]
[TH]Type[/TH]
[TH]Sales[/TH]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Bag[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Bag[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]Bunch[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Bag[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone help me with this? To reiterate: I would like M code for this if possible, not DAX.
Thanks,
Matty
I'm looking for help with Power Query to achieve the following...
Here's my data:
[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]Product[/TH]
[TH]Type[/TH]
[TH]Sales[/TH]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Bag[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Box[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Bag[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]Bunch[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Bag[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Box[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want to extract the records for each Product where the biggest Sales have taken place. The result should be as follows:
[TABLE="class: tableizer-table"]
<tbody>[TR="class: tableizer-firstrow"]
[TH]Product[/TH]
[TH]Type[/TH]
[TH]Sales[/TH]
[/TR]
[TR]
[TD]Apple[/TD]
[TD]Bag[/TD]
[TD]11[/TD]
[/TR]
[TR]
[TD]Pear[/TD]
[TD]Bag[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Banana[/TD]
[TD]Bunch[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]Bag[/TD]
[TD]12[/TD]
[/TR]
</tbody>[/TABLE]
Can anyone help me with this? To reiterate: I would like M code for this if possible, not DAX.
Thanks,
Matty