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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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