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
Syndicate_Admin
Administrator
Administrator

Suma acumulada del ahorro total

Hola

Tengo 3 columnas "Precio actual", "Precio anterior" y "Ahorro". Las fórmulas son las siguientes.

Current Price = 
CALCULATE(PurchaseReceipts[Total Invoice wo Tax]/Sum(PurchaseReceipts[qty]))


Previous Price = 
CALCULATE(PurchaseReceipts[Current Price], PREVIOUSMONTH(DateTable[Date]))


Savings = 
    If(HASONEFILTER(Products[Product Name]),
        If(
            OR(isblank(PurchaseReceipts[Current Price]), 
                isblank(PurchaseReceipts[Previous Price])),
            blank(), 
            PurchaseReceipts[Previous Price] - PurchaseReceipts[Current Price]
        ),
        CALCULATE(
            PurchaseReceipts[Previous Price] - PurchaseReceipts[Current Price],
            ALLSELECTED(PurchaseReceipts) ,VALUES(Products)
        )
    )

El problema es evidente, necesito totales de la columna "Ahorros" y BLANKS en "precio actual" y "precio anterior" como se muestra a continuación

Majidbhatti_0-1638082881555.png

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

¿@smpa01

¿Pudiste ver el archivo pbix?

Syndicate_Admin
Administrator
Administrator

@Majidbhatti es amablemente posible publicar una muestra de pbix, por favor?

¿@smpa01


Los ahorros deben totalizarse en todos los grupos ROW.

El archivo está disponible aquí

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.