Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello, I need to find the average of the column [Delivery Time] by the distinct sum of the column [Index Count]:
Medida = CALCULATE(
AVERAGEX(
VALUES(dCalendario[Data]),
CALCULATE(DISTINCTCOUNT(fPedidos[Índice])
)))
Solved! Go to Solution.
I found the solution, thanks.
Média dias de entrega =
VAR Qnt_Entregas =
DISTINCTCOUNT ( fPedidos[Índice] )
VAR Soma_Dias_Entrega =
SUMX (
VALUES ( fPedidos[Índice] ),
CALCULATE ( AVERAGE ( fPedidos[Tempo de Entrega] ) )
)
RETURN
DIVIDE ( Soma_Dias_Entrega, Qnt_Entregas )
@Vialle_Diego , that depends on visual column
Medida = CALCULATE(
AVERAGEX(
VALUES(dCalendario[State]),
CALCULATE(DISTINCTCOUNT(fPedidos[Índice])
)))
I found the solution, thanks.
Média dias de entrega =
VAR Qnt_Entregas =
DISTINCTCOUNT ( fPedidos[Índice] )
VAR Soma_Dias_Entrega =
SUMX (
VALUES ( fPedidos[Índice] ),
CALCULATE ( AVERAGE ( fPedidos[Tempo de Entrega] ) )
)
RETURN
DIVIDE ( Soma_Dias_Entrega, Qnt_Entregas )