Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Lookupvalue and filter.

Hi everybody, i have some question about this. I have a table that contain multiple columns (Market, Despatch, etapa1).  i have 1 MARKET, and a lot of despatch.    I need to find de max valu...
  • v-xiaotang's avatar
    4 years ago

    Hi Anonymous 

    Thanks for reaching out to us.

    >> And then calculate the addition with the max values

    You can try this, create the 2 measures

    Max_PerMarDes = 
    var _maxEta=CALCULATE(MAX('Table'[Etapa1]),ALLEXCEPT('Table','Table'[Market],'Table'[Despatch]))
    return IF(MIN('Table'[Etapa1])=_maxEta,_maxEta)
    sum = SUMX('Table',[Max_PerMarDes])

    result

     

    Best Regards,

    Community Support Team _Tang

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