Forum Discussion

Mann's avatar
Mann
Icon for Resolver III rankResolver III
7 years ago
Solved

Finding Max of a column value as per groups dynamically when user selects Slicer on DateTime

Hi All,   I have one interesting scenario and I am kind of struggling to find a fix for it. There is a table which has "Parent", "Child", "DateTime", "Value" field as shown: I need to do tw...
  • TeigeGao's avatar
    7 years ago

    Hi Mann,

    According to your description, my understanding is that you want to find the max data for each group of parent based on the selected DateTime.

    In this scenario, we can use the following measure:

    MaxValue = CALCULATE(MAX(Data[Value]),FILTER(ALLSELECTED(Data),Data[Parent] = MIN(Data[Parent])))

    The result will like below:

    Best Regards,

    Teige