Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Max value with multiple criteria

Hi All,   I have a table like below. I want to get the maximum value from the same grid and within the same week, but the expected result that the value displayed in the max value column is IP Name...
  • amitchandak's avatar
    5 years ago

    Anonymous , Assuming you need the last column

     

    Create a new column

     

    max Grid =
    var _max = maxx(filter(Table,[Week] = earlier([Week]) && [Grid] = earlier([Grid])),[value])
    return
    maxx(filter(Table,[Week] = earlier([Week]) && [Grid] = earlier([Grid]) && [value] =_max ),[ IP Name])