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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.