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.
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
aplicar el mismo cálculo al grupo en lugar de sumar los valores de línea.
esto es lo que estoy recibiendo
CY_QTY | PY_QTY | CY_REV | PY_REV | CYavgREV | PYavgREV | REV-var | |
SuB Total A+B+C | 150 | 425 | 65.000 euros | 180.000 euros | 433 euros | 424 euros | 1.471 euros |
Producto A | 100 | 350 | 25.000 euros | 75.000 euros | 250 euros | 214 euros | 3.571 euros |
Producto B | 0 | 50 | £ - | 60.000 euros | £ - | 1.200 euros | £ - |
Producto C | 50 | 25 | 40.000 euros | 45.000 euros | 800 euros | 1.800 euros | -50.000 euros |
lo que me gustaría ver es
CY_QTY | PY_QTY | CY_REV | PY_REV | CYavgREV | PYavgREV | REV-var | |
SuB Total A+B+C | 150 | 425 | 65.000 euros | 180.000 euros | 433 euros | 424 euros | -46.429 |
Producto A | 100 | 350 | 25.000 euros | 75.000 euros | 250 euros | 214 euros | 3.571 euros |
Producto B | 0 | 50 | £ - | 60.000 euros | £ - | 1.200 euros | £ - |
Producto C | 50 | 25 | 40.000 euros | 45.000 euros | 800 euros | 1.800 euros | -50.000 euros |
ayuda apprecated
Solved! Go to Solution.
@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.
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
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
@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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |