Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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 )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
11 | |
10 | |
9 | |
8 |