You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Ranks an input value in a series (ascendingly or descendingly). Removes duplicates to rank only unique values.
//Usage:
List.RankDense = Load("List.RankDense"),
List.RankDense("B",{"A","A","B","C"})
//Result: 3
*/
//Originally written by Colin Banfield: http://social.technet.microsoft.com/Forums/en-US/973e9381-ff46-4756-a071-88bb4c2105e4/pushing-more-calcs-to-power-query-replacing-dax-rankx
(inputValue as any, inputSeries as list, optional orderDescending as nullable logical) as number =>
let
order = if orderDescending or orderDescending = null then Order.Descending else Order.Ascending,