Forum Discussion
Anonymous
6 years agoNot applicable
Comparing two tables to find differences
I have 2 tables that should, in theory, be identical; Table 1 agentID Date Ringtime Talktime ConnectionID HoldTime 1 26/09/2019 12 124 CID15789 0 2 26/09/2019 5 452 CID782...
- 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.
v-lid-msft
Community Support
6 years agoHi Anonymous ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
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.