Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Get Value corresponding to max date over Primary Key

Hello Team,   I am fairly new to Power BI and I am stuck with a logic where i have to Get the value from a column based on max date of each request.   My Tables consist of a Request table connect...
  • v-juanli-msft's avatar
    v-juanli-msft
    7 years ago

    Hi Anonymous 

    Create two measures in comments table,

    Max date = CALCULATE(MAX('Comments table'[date]),ALLEXCEPT('Comments table','Comments table'[ID]))
    
    flag = IF(MAX('Comments table'[date])=[Max date],1,0)

    Add [flag] in the visual level filter

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.