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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.