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
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_alonso
Helper I
6 years agoAnonymous Sorry for the late reply, this worked perfectly, many thanks!!!