Forum Discussion
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.
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
- Anonymous2 years ago
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 _resultBest Regards,
Gao
Community Support TeamIf 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
3 Replies
- amitchandakSuper 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
- AnonymousNot applicable
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 _resultBest Regards,
Gao
Community Support TeamIf 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
- Arpitb12Helper I
Coincide = IF(COUNTROWS(FILTER(MiTabla, MiTabla[Columna1] = MiTabla[Columna2])) > 0, "Concilia", BLANK())
Estado_Coincidencia = [Coincide]