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
Gareth_Hunt
Helper II
Helper II

Variación de ingresos en la matriz

Hola chicos nuevos en el foro y mi primer post.

Me gustaría calcular la desviación de ingresos para un número de productos en comparación con el período de sampe el año pasado.

Primera regla - La desviación de ingresos se define como (CY_avg_rev - PY_avg_rev) x CY_Qty)

Segunda Regla:ignorar si CY o PY Qty es 0

Tengo esto trabajando a nivel de línea, pero cuando miro el sub total para el grupo en una matriz

Variación de ingresos : if(CYMeasures[CY-Qty]-0 , blank(),if(PYMeasures[PY-Qty]-0,BLANK(), CYMeasures[CY-AvgREV]-PYMeasures[PY-AvgRev])*CYMeasures[CY-Qty])


aplicar el mismo cálculo al grupo en lugar de sumar los valores de línea.

esto es lo que estoy recibiendo

CY_QTYPY_QTYCY_REVPY_REVCYavgREVPYavgREVREV-var
SuB Total A+B+C15042565.000 euros180.000 euros433 euros424 euros1.471 euros
Producto A10035025.000 euros75.000 euros250 euros214 euros3.571 euros
Producto B050£ -60.000 euros£ -1.200 euros£ -
Producto C502540.000 euros45.000 euros800 euros1.800 euros-50.000 euros

lo que me gustaría ver es

CY_QTYPY_QTYCY_REVPY_REVCYavgREVPYavgREVREV-var
SuB Total A+B+C15042565.000 euros180.000 euros433 euros424 euros-46.429
Producto A10035025.000 euros75.000 euros250 euros214 euros3.571 euros
Producto B050£ -60.000 euros£ -1.200 euros£ -
Producto C502540.000 euros45.000 euros800 euros1.800 euros-50.000 euros

ayuda apprecated

2 ACCEPTED SOLUTIONS

@Gareth_Hunt bien la medida funcionará sea cual sea el período en el que esté filtrando, hasta que haya algo que no sepa sobre el modelo.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

v-easonf-msft
Community Support
Community Support

Hola, @Gareth_Hunt

¿Lo has resuelto? En caso afirmativo, podría aceptar la respuesta útil como solución. También podría compartir su propia solución aquí. Por ahora, no hay contenido de descripción en el subproceso. Si todavía necesita ayuda, por favor comparta más detalles con nosotros.

Saludos
Equipo de soporte de la comunidad _ Eason

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hola, @Gareth_Hunt

¿Lo has resuelto? En caso afirmativo, podría aceptar la respuesta útil como solución. También podría compartir su propia solución aquí. Por ahora, no hay contenido de descripción en el subproceso. Si todavía necesita ayuda, por favor comparta más detalles con nosotros.

Saludos
Equipo de soporte de la comunidad _ Eason

parry2k
Super User
Super User

@Gareth_Hunt añadir medida para REV_VAR total

REV-VAR Total = 
SUMX ( VALUES ( Table[Product] ), [Rev-Var Measure] )

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hola Parry 2K,

gracias por su rápida respuesta -

Lo siento, no entiendo completamente su expresión "valores (tabla[Producto])"

¿Cómo creo la tabla a la que se hace referencia [producto] - nuevo en Power BI

muchas gracias

Gareth

@Gareth_Hunt cualquier columna que esté utilizando para el producto a, b, c , utilice esa función de valores.

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hola Parry

Realmente apreciamos que me ayude -un paso más cerca que es genial - todavía no muy bien aunque

Creo que puede ser la tabla de productos es a lo largo de varios años y por supuesto im sólo interesado en este año

Muchas gracias

Gareth

@Gareth_Hunt bien la medida funcionará sea cual sea el período en el que esté filtrando, hasta que haya algo que no sepa sobre el modelo.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.