Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola, chicos
Tengo una medida (ROA) que se calcula dividiendo los ingresos con la posición NETA de los clientes. Necesito una forma de mostrar esta medida sumando los últimos 12 meses de su resultado.
Sin embargo, como puede ver en la parte inferior derecha total, lo está agregando por división del total.
¿Alguna idea sobre cómo resolver esto? Gracias de antemano.
Hi, @diogodasilva
¿Desea que el ROA total muestre la suma de divisiones de los últimos 12 meses? Puede probar los siguientes métodos.
Datos de muestra:
Medir:
ROA = DIVIDE(SUM('Table'[Valor]),SUM('Table'[Net]))
Final ROA =
Var N1=SUMMARIZE(FILTER(ALL('Table'),[Month]<=MAX('Table'[Month])),[Month],"Sum",[ROA])
Var N2=TOPN(12,N1,[Month],DESC)
Var Cumulative12month=SUMX(N2,[Sum])
return
IF(HASONEVALUE('Table'[Month]),[ROA],Cumulative12month)
¿Es este el resultado que esperas?
Saludos
Equipo de soporte de la comunidad _Charlotte
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
@diogodasilva Esto parece un problema de medida total. Muy común. Vea mi publicación al respecto aquí: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Además, esta Medida Rápida, Medir Totales, La Palabra Final debería darle lo que necesita:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.