Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Table Total Sum with Filters

Hello Everyone.    I got stuck in a Table Total wich is not summarizing my rows.   I want to sum total sales by each invoice number filtering the last negotiation number. I have to consider only ...
  • amitchandak's avatar
    4 years ago

    Anonymous , Try a measure like

     

    sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales]))))

     

    or

    calculate(sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales])))) ,

    filter(allselected(Table), Table[Invoice] = max(Table[Invoice]) ) )