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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Girish_P
Frequent Visitor

Obtener suma para todas las filas, excepto Promedio en total general en matriz visual

En un objeto visual de matriz quiero cambiar el campo Total general a Gran promedio. Por ejemplo.

Screenshot 2020-11-26 123154.jpg

2 ACCEPTED SOLUTIONS

Hola @Girish_P ,

Modifique su medida como se indica a continuación:

avg1z = 
var _sum=SUMX(FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])&&'Sheet1'[Row Labels]=MAX('Sheet1'[Row Labels])),'Sheet1'[qnt])
var _distinctcount=CALCULATE(DISTINCTCOUNT(Sheet1[Row Labels]),FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])))
Return
IF(ISINSCOPE(Sheet1[Row Labels]),_sum,DIVIDE(SUMX(FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])),'Sheet1'[qnt]),_distinctcount))

Y verás:

v-kelly-msft_0-1606787192471.png

Para el archivo .pbix relacionado, pls ver adjunto.

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

View solution in original post

Hola

Total = SUM(Sheet1[qnt])
Measure = AVERAGEX(VALUES(Sheet1[Row Labels]),[Total])

Espero que esto ayude.

Untitled.png

Prueba estas medidas


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Girish_P
Frequent Visitor

@amitchandak @sreenub

descarga de pbix

https://1drv.ms/u/s!AuHFzkBFHhqqga9TApvSulUpiJ9hwA?e=HANo68

Gracias por sus respuestas. pero la solución no está clara. adjuntando p.p. de prueba para su referencia. puede implementarlo y publicarlo.

Hola @Girish_P ,

Cree una medida como se muestra a continuación:

avg1 = IF(ISINSCOPE(Sheet1[Row Labels]),MAX('Sheet1'[qnt]),AVERAGEX(FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])),'Sheet1'[qnt]))

Y verás:

v-kelly-msft_0-1606718318242.png

Para el archivo .pbix relacionado, pls ver adjunto.

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

@v-kelly-msft gracias por su respuesta.

pero parece que toma Max a nivel de fila en lugar de suma.

enlace pbix :..

https://1drv.ms/u/s!AuHFzkBFHhqqga9YJ1zS6nva_EK7-A?e=kYVcQj

Hola

Total = SUM(Sheet1[qnt])
Measure = AVERAGEX(VALUES(Sheet1[Row Labels]),[Total])

Espero que esto ayude.

Untitled.png

Prueba estas medidas


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hola @Girish_P ,

Modifique su medida como se indica a continuación:

avg1z = 
var _sum=SUMX(FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])&&'Sheet1'[Row Labels]=MAX('Sheet1'[Row Labels])),'Sheet1'[qnt])
var _distinctcount=CALCULATE(DISTINCTCOUNT(Sheet1[Row Labels]),FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])))
Return
IF(ISINSCOPE(Sheet1[Row Labels]),_sum,DIVIDE(SUMX(FILTER(ALL(Sheet1),'Sheet1'[Day]=MAX('Sheet1'[Day])),'Sheet1'[qnt]),_distinctcount))

Y verás:

v-kelly-msft_0-1606787192471.png

Para el archivo .pbix relacionado, pls ver adjunto.

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

amitchandak
Super User
Super User

@Girish_P ,

Prueba a medir como

avergageX(values(Table[Row Label]),[Day1])

avergageX(values(Table[Row Label]),sum(Table[Day1]))

sreenub
Resolver II
Resolver II

Cree la medida que muestra valores (10,20,30 ...) con Promedio en lugar de SUM. por lo que mostrará 10,20,30 ... permanecer igual ya que es el nivel más bajo de granularidad y mostrará promedio en total general.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.