Forum Discussion

stalerik's avatar
stalerik
Icon for Helper II rankHelper II
5 years ago
Solved

DAX help - create column with minimum value so far inside a group

Hello all,   I am looking for some help to create a calculated column which holds the minimum value recorded in a group.    I have an Index, Group, and Value column.  The Lowest column should be ...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, stalerik 

     

    Please try the below.

     

     

    Lowest CC =
    VAR currentgroup = 'Table'[Group]
    RETURN
    CALCULATE (
    MIN ( 'Table'[Value] ),
    FILTER (
    'Table',
    'Table'[Group] = currentgroup
    && 'Table'[Index] <= EARLIER ( 'Table'[Index] )
    )
    )

     

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM