Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter on total SUM

Hi all,

I have a question which I hope has an easy answer. I've been looking all over but cannot find the solution:

 

My data consists of sales data (turnover, item data, quantity,...) of several different products from many outlets. The items sold on the same ticket have the same ticket number and all have unique identifiers and prices.

 

Now I would like to filter out all tickets of a certain total ticket value (same ticket number) and see the item details.

I can see the total value of the ticket in a table (without item details), but when I'm filtering on Turnover it looks at the value of the individual item sold but not on the total ticket value.

 

Any help would be greatly appreciated!

Thanks,

Ivan

  • Anonymous ,

     

    Ticket Value = sum(Table[Ticket Value])


    Value above 100 = countX(Filter(Values(Table[ticket id]),[Ticket Value] >0),Table[ticket id])

    or
    countX(Filter(summarize(Table,Table[ticket id],"_1",[Ticket Value]),[_1]>100),[ticket id])

     

2 Replies

  • Anonymous ,

     

    Ticket Value = sum(Table[Ticket Value])


    Value above 100 = countX(Filter(Values(Table[ticket id]),[Ticket Value] >0),Table[ticket id])

    or
    countX(Filter(summarize(Table,Table[ticket id],"_1",[Ticket Value]),[_1]>100),[ticket id])

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Perfect, thanks amitchandak for the fast response!