Forum Discussion
Comparing two tables to find differences
- 6 years ago
Hi Anonymous ,
We can create a calculated column In TableA using following formula to meet your requirement:
IsDifferentFromTableB = IF ( COUNTROWS ( FILTER ( 'TableB', [agentID] = EARLIER ( [agentID] ) && [Date] = EARLIER ( [Date] ) && [Ringtime] = EARLIER ( [Ringtime] ) && [HoldTime] = EARLIER ( [HoldTime] ) && [ConnectionID] = EARLIER ( [ConnectionID] ) && [Talktime] = EARLIER ( [Talktime] ) ) ) + 0 > 0, "NO", "YES" )Also you could create in TableB:
IsDifferentFromTableA = IF ( COUNTROWS ( FILTER ( 'TableA', [agentID] = EARLIER ( [agentID] ) && [Date] = EARLIER ( [Date] ) && [Ringtime] = EARLIER ( [Ringtime] ) && [HoldTime] = EARLIER ( [HoldTime] ) && [ConnectionID] = EARLIER ( [ConnectionID] ) && [Talktime] = EARLIER ( [Talktime] ) ) ) + 0 > 0, "NO", "YES" )
BTW, pbix as attached.Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
We can create a calculated column In TableA using following formula to meet your requirement:
IsDifferentFromTableB =
IF (
COUNTROWS (
FILTER (
'TableB',
[agentID] = EARLIER ( [agentID] )
&& [Date] = EARLIER ( [Date] )
&& [Ringtime] = EARLIER ( [Ringtime] )
&& [HoldTime] = EARLIER ( [HoldTime] )
&& [ConnectionID] = EARLIER ( [ConnectionID] )
&& [Talktime] = EARLIER ( [Talktime] )
)
) + 0 > 0,
"NO",
"YES"
)
Also you could create in TableB:
IsDifferentFromTableA =
IF (
COUNTROWS (
FILTER (
'TableA',
[agentID] = EARLIER ( [agentID] )
&& [Date] = EARLIER ( [Date] )
&& [Ringtime] = EARLIER ( [Ringtime] )
&& [HoldTime] = EARLIER ( [HoldTime] )
&& [ConnectionID] = EARLIER ( [ConnectionID] )
&& [Talktime] = EARLIER ( [Talktime] )
)
) + 0 > 0,
"NO",
"YES"
)
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
HI v-lid-msft I am facing same question. And I have tried the method you provided. But I want to know if there is any way to highlight the difference for both tables.