Forum Discussion

tim_mountford's avatar
tim_mountford
New Member
3 years ago
Solved

Filter minimum value per category within date range

Hi,   I'd really appreciate some help trying to create a measure to select the minimum value per category within a selected date range.   The dataset contains rows with different attribute measur...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi tim_mountford ,

     

    Please try this measure.

    Measure = var a=FILTER(ALLSELECTED('Table'),[Person_ID]=SELECTEDVALUE('Table'[Person_ID])&&[Attribute_type_ID]=SELECTEDVALUE('Table'[Attribute_type_ID]))
    var b=MINX(a,[Ordering])
    return MAXX(FILTER(a,[Ordering]=b),[Attribute_value])

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.