Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Find LatestResult dynamically: Measure showing too many values

Hello everyone, I have a problem with my table. I want to be able to show only the latest result based on the version. The version always changes depending on my visual filter. The LastModified is a...
  • amitchandak's avatar
    amitchandak
    4 years ago

    Anonymous , Try a new measure or a new column

     

    measure =
    var _1 = calculate(Lastnonblankvalue(Table[LastModified], max(Table[Version])), filter(allselected(Table), Table[ID] = max(Table[ID])))
    return
    if( max(Table[Version]) =_1, true(), false())

     

     

    new column =
    var _1 = maxx(filter(Table, [ID] = earlier([ID]) ), [LastModified])
    var _2 = maxx(filter(Table, [ID] = earlier([ID]) && LastModified] = _1 ), [Version])
    return
    if( (Table[Version]) =_2, true(), false())