Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
nanutum
Helper I
Helper I

IF en medida Por qué Total no suma

Hola a todos

i crear measue uso "IF" Resultados está bien, pero Total no mostrar

nanutum_0-1594209072405.png

Código de cliente perdido

Lost_Customer = 
    IF(AND([Bought_P1]<> BLANK (),[Bought_P2] = BLANK ()),
        DISTINCTCOUNT(Cust[Cust_Code]),
            BLANK()
    )

Nuevo código de cliente

New_Customer = 
        IF(AND([Bought_P1] = BLANK(),[Bought_P2] <> BLANK ()),
            DISTINCTCOUNT(Cust[Cust_Code]),
                BLANK()
        )

Por favor, ayúdame. Gracias

2 REPLIES 2
mahoneypat
Employee
Employee

Por favor, pruebe este enfoque, haciendo referencia a su medida existente en una nueva medida para usar en su lugar. Reemplace Table[Customer] por la columna de cliente utilizada en el objeto visual.

NewMeasure - SUMX(VALUES(Table[Customer]), [Lost_Customer])

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Estimado @mahoneypat

MI Medida

Lost_Customer = 
    IF(AND([Bought_P1]<> BLANK (),[Bought_P2] = BLANK ()),
        DISTINCTCOUNT(Cust[Cust_Code]),
            BLANK()
    )

Su medida

NewMeasure = SUMX(VALUES(Table[Customer]), [Lost_Customer])

Necesito tener sólo una medida intento esto, pero los datos no muestran

Lost_Cust_01 = 
var _Lost_Cust = IF(AND([Bought_P1]<> BLANK (),[Bought_P2] = BLANK ()),
                    DISTINCTCOUNT(Cust[Cust_Code]),
                        BLANK()
                )
Return 
        SUMX(VALUES(Cust[Cust_Code]),_Lost_Cust)

por favor ayúdame de nuevo

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.