Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 )
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 17 | |
| 11 | |
| 10 |