Forum Discussion
sara_alonso
Helper I
6 years agoFilter column by minimum revenue
Hello, I have the following data of a store sales below (it is a simplification of my dataset). I would need to quantify how much of the total revenue of the store comes from tickets>200€, as a ...
- Anonymous6 years ago
Hi sara_alonso ,
You can try to create one measure as below:
Measure = VAR t = SUMMARIZE ( 'Tickets', 'Tickets'[Ticket number], "TicketNum", ALLSELECTED ( 'Tickets'[Ticket number] ), "Tickettotal", MAX ( 'Tickets'[Ticket total]) ) RETURN DIVIDE ( SUMX ( FILTER ( t, [Tickettotal] > 200 ), [Tickettotal] ), SUMX ( ALL ( 'Tickets' ), 'Tickets'[Product price] ) )Best Regards
Rena
sara_alonso
Helper I
6 years agoMany thanks amitchandak ,
When I type the first part of the formula, and I arrive to table product, it states that Filter can only have 2 arguments.
Revenue2= sumx(summarize(filter(Table,Table[Ticket total],table[Product],
On the other side, what is this parameter? Table[Qty] Is it a new measure I should calculate?
Anonymous
6 years agoNot applicable
Hi sara_alonso ,
You can try to create one measure as below:
Measure =
VAR t =
SUMMARIZE (
'Tickets',
'Tickets'[Ticket number],
"TicketNum", ALLSELECTED ( 'Tickets'[Ticket number] ),
"Tickettotal", MAX ( 'Tickets'[Ticket total])
)
RETURN
DIVIDE (
SUMX ( FILTER ( t, [Tickettotal] > 200 ), [Tickettotal] ),
SUMX ( ALL ( 'Tickets' ), 'Tickets'[Product price] )
)Best Regards
Rena
- sara_alonso6 years ago
Helper I
Anonymous Sorry for the late reply, this worked perfectly, many thanks!!!