Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
GalanteJM
Regular Visitor

Promedio de un recuento

Hola tengo una tabla CONSUMO de la cual quiero saber cuantos Registros promedios entre fechas cargo cada Usuario.

Tengo un campo Usuario, F_REGISTRO.

F_registro esta como segmentador de datos del informe.

 

Esto es o que quiero que se muestre:

GalanteJM_0-1710369227863.png

Por favor si me pueden ayudar.

Si necesitan algun otro dato me avisan

1 ACCEPTED SOLUTION

Hi @GalanteJM 

Please try create these measures:

Avg = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[USUARIOS]))
Total = SUMX(ALLSELECTED('Table'[USUARIOS]),[Avg])
Measure = IF(ISINSCOPE('Table'[USUARIOS]),[Avg],[Total])

Output:

vcgaomsft_0-1712300208436.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

View solution in original post

4 REPLIES 4
v-cgao-msft
Community Support
Community Support

Hi @GalanteJM ,

Please try these measures:

Measure 1 = AVERAGEX(SUMMARIZE('CONSUMO','CONSUMO'[F_REGISTRO],'CONSUMO'[Etiquetas de fila],"@MLCAMISA",[MLCAMISA]),[@MLCAMISA])
Measure 2 = AVERAGEX(SUMMARIZE('CONSUMO','CONSUMO'[F_REGISTRO],'CONSUMO'[Etiquetas de fila],"@nbanchero",[nbanchero]),[@nbanchero])
Total general = [Measure 1] + [Measure 2]

vcgaomsft_0-1710468315392.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Las columnas MCAMISA y nbanchero es un campo en una tabla combinada que se llama:

Nombre del campo: "USUARIOS", 

 

Se podra reformalar?

Hi @GalanteJM 

Please try create these measures:

Avg = CALCULATE(AVERAGE('Table'[Value]),ALLEXCEPT('Table','Table'[USUARIOS]))
Total = SUMX(ALLSELECTED('Table'[USUARIOS]),[Avg])
Measure = IF(ISINSCOPE('Table'[USUARIOS]),[Avg],[Total])

Output:

vcgaomsft_0-1712300208436.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Muchas gracias

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.