Forum Discussion
Comparing two table columns which is having Many to many relationship
- 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
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/
- Anonymous4 years agoNot applicable
VahidDM i have tired in measure i am able to type calcualte function . but values return only checking column type and Year . i want to check three values also .if three values and scond table CMN values matched should return True sir
- VahidDM4 years ago
Super User
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/- Anonymous4 years agoNot applicable
VahidDM sir modifed the measure . true return only for the all four below values same
Eo_IN_tables,Eo_Out_tables,IN_Tables,CMN
please find the below screen shot for your reference . its true or false wrongly returned sir