Power Query M code
let
Source = YourTable,
AddedTier = Table.AddColumn(Source, "Tier", (row) =>
Table.Last(Table.SelectRows(TierTable, each [MinValue] <= row[Value]))[TierName]
)
in
AddedTier
Matches a value to the correct tier in a lookup table based on a minimum threshold, like Excel's approximate VLOOKUP.
let
Source = YourTable,
AddedTier = Table.AddColumn(Source, "Tier", (row) =>
Table.Last(Table.SelectRows(TierTable, each [MinValue] <= row[Value]))[TierName]
)
in
AddedTier
TierTable must be sorted ascending by MinValue; Table.Last picks the highest tier threshold that's still at or below the row's value.
Browse all 145 snippets in the Power Query M Code Snippets, or search the library for something similar to Range Lookup for Tiers (Approximate Match).