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
Buenas tardes, necesito ayuda con un problema en powerbi, cuento con la siguiente tabla
"cliente, fecha de visita"
Cli1, 01/01/2022
Cli1, 02/01/2022
Cli 2, 01/01/2022
Cli 2, 02/01/2022
Cli 2, 03/01/2022
Yo quiero mostrar en un dashboard el promedio mensual de visitas de mis clientes por lo que la tabla resultante seria
"Mes,promedio de visitas"
Enero , (2+3)/2=2,5
Hay alguna forma de calcular esto?
Muchas gracias
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
average =
CALCULATE (
COUNTROWS ( 'Table' ) / DISTINCTCOUNT ( 'Table'[Client] ),
FILTER (
'Table',
YEAR ( [date of visit] ) = YEAR ( MAX ( 'Table'[date of visit] ) )
&& MONTH ( [date of visit] ) = MONTH ( MAX ( 'Table'[date of visit] ) )
)
)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
average =
CALCULATE (
COUNTROWS ( 'Table' ) / DISTINCTCOUNT ( 'Table'[Client] ),
FILTER (
'Table',
YEAR ( [date of visit] ) = YEAR ( MAX ( 'Table'[date of visit] ) )
&& MONTH ( [date of visit] ) = MONTH ( MAX ( 'Table'[date of visit] ) )
)
)
Output:
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , A measure like
AverageX(summarize(Table, Table[Client], "_sum", Count(Table[fecha de visita])), [_sum])
or add month year column in table and then have
Month Year = format(Table[fecha de visita], "YYYYMM")
measure =
AverageX(summarize(Table, Table[Client], Table[Month Year], "_sum", Count(Table[fecha de visita])), [_sum])
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |