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
Parthsh93
Helper IV
Helper IV

Medición correcta para los totales correctos

Me estoy equivocando.

Quiero que la fórmula funcione como sumar los valores de columna derivados a través de la medida y debería funcionar correctamente con cualquier filtro se coloca haciendo clic en mi panel de control.
Aquí en la imagen, los valores mostrados de "Viajes guardados VS el mes pasado con Total" y "Ahorros de carga VS LM" son los únicos valores y los totales de estos valores no son correctos si usted cuenta.

Column totals wrong.PNG

Trips saved VS last Month With Total = 
SUMX(
    VALUES(dDate[YearMonth]),
CALCULATE(
    IF(
        [0_Total Volume Shipped by Cases]=0 || [last month loadability BCPT]=0,
        BLANK(),
        DIVIDE([0_Total Volume Shipped by Cases],[last month loadability BCPT],BLANK())-[0_Total Shipments])))
Loadability by cases per trips = CALCULATE(DIVIDE([0_Total Volume Shipped by Cases],[0_Total Shipments],BLANK()))
last month loadability BCPT = CALCULATE([Loadability by cases per trips],DATEADD(dDate[Date],-1,MONTH))
0_Total Shipments = COUNTX('Prototype Modeling_Freight','Prototype Modeling_Freight'[Sold Cases])
_Average Cost Per Freight = DIVIDE([Cost of Freight],[0_Total Shipments],0)
Savings From Loadability VS LM = SUMX(VALUES(dDate[YearMonth]),[_Average Cost Per Freight]*[Trips saved VS last Month With Total])

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hola @Parthsh93 ,

¿Puede cargar su archivo .pbix de muestra a través de onedrive Business y compartir el enlace con nosotros?

Muy apreciado.

Saludos
Kelly
¿Respondí a tu pregunta? ¡Marca mi puesto como solución!

amitchandak
Super User
Super User

@Parthsh93 , Debe proporcionarle un contexto de fila

Trate como

Savings From Loadability VS LM  new=
sumx(summarize(table, table[Month], "_1",[Savings From Loadability VS LM]),[_1])

Gracias por responder @amitchandak ,

pero lo que usted ha sugerido, no soy capaz de entender.

Todo el concepto de resumen no está claro para mí, he intentado leer sobre ello, pero simplemente no entiendo el lenguaje.

@Parthsh93 , Trate de calcular la medida a nivel de mes y hacer suma después de eso. Medir volver a calcular el total general. Así que obligándolo a resumirlo desde el nivel de Mes

Esto como los primeros datos de grupo a nivel de mes y luego usar de nuevo

Resumir creará una tabla en memoria y "_1" una columna en memoria

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.