Forum Discussion

anupambit1797's avatar
anupambit1797
Iron Contributor
Nov 24, 2023

LET function help

Dear Experts,                    In attached sheet, I shared the calculation for the Min/Max/Avg "rrmUlUsedMcs", for each of the rnti(colD), and the lcrId used per rnti. But , I want to use LET fun...
  • djclements's avatar
    Nov 24, 2023

    anupambit1797 Use the LET function to define names for each variable and/or calculation, then use HSTACK to return the final results. For example:

     

    =LET(
       keys, Table3[rnti],
       values, Table3[rrmUlUsedMcs],
       u, UNIQUE(keys),
       a, BYROW(u, LAMBDA(r, TEXTJOIN(", ",, UNIQUE(FILTER(Table3[lcrId], keys=r))))),
       b, MINIFS(values, keys, u),
       c, MAXIFS(values, keys, u),
       d, AVERAGEIFS(values, keys, u),
       HSTACK(u, a, b, c, d)
    )

     

    See attached...

Resources