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
Cs02
Regular Visitor

desktop

Buenos días comunidad, necesito si me pueden ayudar como hacer para poder determinar valores coincidentes entre dos columnas de una misma tabla. La idea es poder replicar el ejemplo que les paso en la siguiente imagen.

Cs02_0-1698673825372.png

Si los valores coinciden en las dos columnas que me ponga Concilia, sino que quede vacio. La complejidad que tengo es que no detecta coincidencias en la misma columna. Agradecerè toda la solución. Tanto como 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Cs02 ,

Valores iguales = 
VAR _creditos = 'Table'[Creditos]
VAR _debitos = 'Table'[Debitos]
VAR _result =
    IF (
        (
            NOT ISBLANK ( _creditos )
                && COUNTROWS ( FILTER ( ALL ( 'Table' ), 'Table'[Debitos] = _creditos ) ) > 0
        )
            || (
                NOT ISBLANK ( _debitos )
                    && COUNTROWS ( FILTER ( ALL ( 'Table' ), 'Table'[Creditos] = _debitos ) ) > 0
            ),
        "Concilia"
    )
RETURN
    _result

vcgaomsft_0-1698827617120.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Arpitb12
Helper I
Helper I

Coincide = IF(COUNTROWS(FILTER(MiTabla, MiTabla[Columna1] = MiTabla[Columna2])) > 0, "Concilia", BLANK())
Estado_Coincidencia = [Coincide]

v-cgao-msft
Community Support
Community Support

Hi @Cs02 ,

Valores iguales = 
VAR _creditos = 'Table'[Creditos]
VAR _debitos = 'Table'[Debitos]
VAR _result =
    IF (
        (
            NOT ISBLANK ( _creditos )
                && COUNTROWS ( FILTER ( ALL ( 'Table' ), 'Table'[Debitos] = _creditos ) ) > 0
        )
            || (
                NOT ISBLANK ( _debitos )
                    && COUNTROWS ( FILTER ( ALL ( 'Table' ), 'Table'[Creditos] = _debitos ) ) > 0
            ),
        "Concilia"
    )
RETURN
    _result

vcgaomsft_0-1698827617120.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

amitchandak
Super User
Super User

@Cs02 ,

if(  [debitor] = maxx(filter(Table, [Creditor] = earlier( [debitor]) ), [Creditor] ) 

|| [Creditor] = maxx(filter(Table, [debitor] = earlier( [Creditor]) ), [debitor] )   , "Concilia", blank())

 

refer

Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8

 

 

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.