PowerQuery - Calculate MIN across multiple columns for each record

DaveBlakeMAAT

Board Regular
Joined
Feb 28, 2016
Messages
190
Hi

Firstly, I need to achieve the following within PowerQuery (shockingly my employer still uses Office 2010) and not a fan of PowerPivot in 2010 (too easy to break the model!).

In my PowerQuery I will be providing various rankings for based upon multiple conditional columns, what I then need to do is add a calculated column to return the Minimum value.

In Excel I would use =MIN(Column1, Column2, Column3).

Does anyone know if this is possible using a calculated column?

Regards

Dave
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Try

=List.Min({[Colunmn 1], [Colunmn 2], [Colunmn 3]})

You'll get the same formula without typing when you select the columns you're interested in and select the Minimum from the Statistics menu on the Add Column -tab in the Power Query window.

If you don't want the minimum value of each row but from the whole columns add another step where you group by a column where all the values are same (if you don't have one make one) and get the min of the List.Min -column.
 
Last edited:
Upvote 0
Well, I feel really dumb!!

Never used the Statistics button before, it is perfect for what I need. My workloads normally involve groupings!

Many thanks
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,712
Members
452,995
Latest member
isldboy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top