Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Take last version number value

I want to make a report that shows only the value that is evident in the last version (yellow marked). I tried it with the follow DAX expressions:   Last Version No = CALCULATE(SUM(Verkaufs...
  • Fowmy's avatar
    Fowmy
    5 years ago

    Anonymous 

    Please try this one:

    Last Version No M = 
    var __no = MAX(Verkaufsoffertenarchiv[No])
    var __maxno =     
        MAXX( FILTER(  ALL(Verkaufsoffertenarchiv) ,  Verkaufsoffertenarchiv[No] = __no ) , Verkaufsoffertenarchiv[Version_No] )
    return
        CALCULATE(
            SUM(Verkaufsoffertenarchiv[Amount]),
            Verkaufsoffertenarchiv[Version_No] = __maxno,
            Verkaufsoffertenarchiv[No] = __no
        )