Forum Discussion
Anonymous
4 years agoNot applicable
Comparing two table columns which is having Many to many relationship
i have a two table in power bi . i want to compare the values between two tables if values is matched it should return True . if values not matched its should be return false . My table 1: SID ...
- 4 years ago
Anonymous OK try this, and update the column names in the last row of the measure
Status = VAR _A = CALCULATE( MAX( vw_IntegrationDataCheck[CMN] ), FILTER( vw_IntegrationDataCheck, vw_IntegrationDataCheck[ColumnType] = MAX( Out_DataComparison_Totals[columntype] ) && vw_IntegrationDataCheck[CalendarYear] = MAX( Out_DataComparison_Totals[CalendarYear] ) ) ) RETURN IF( MAX( Out_DataComparison_Totals[EO_IN_Tables] ) = _A && MAX( Out_DataComparison_Totals[EO_Out_Tables] ) = _A && MAX( Out_DataComparison_Totals[ IN_Tables] ) = _A, TRUE(), FALSE() )If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Anonymous
4 years agoNot applicable
VahidDM i am not able to type calculate funcution in new column sir . its getting error
- VahidDM4 years ago
Super User
Anonymous
It works well for me, can you share your PBIX file, I think it's more complicated
- Anonymous4 years agoNot applicable
- VahidDM4 years ago
Super User
Anonymous
You file has Directquery and I can't see your data and visuals.
Try this as a measure:
Status = VAR _A = CALCULATE( MAX( vw_IntegrationDataCheck [CMN] ), FILTER( vw_IntegrationDataCheck , vw_IntegrationDataCheck[ColumnType] = MAX( Out_DataComparison_Totals[columntype] ) && vw_IntegrationDataCheck[CalendarYear] = MAX( Out_DataComparison_Totals[CalendarYear] ) ) ) RETURN IF( max(Out_DataComparison_Totals[EO_IN_Tables]) = _A, TRUE(), FALSE() )If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/