Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Solved! Go to Solution.
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
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
Coincide = IF(COUNTROWS(FILTER(MiTabla, MiTabla[Columna1] = MiTabla[Columna2])) > 0, "Concilia", BLANK())
Estado_Coincidencia = [Coincide]
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
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
@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