Forum Discussion
Create a visual that compares two tables and highlights the differences
- Anonymous2 years ago
Hi Mathoosala ,
I assume in case you are trying to compare counts with Location, Color consistent. try creating these measures:Count A = SUM('TableA'[Count])Count B = VAR __cur_location = SELECTEDVALUE('TableA'[Location]) VAR __cur_color = SELECTEDVALUE('TableA'[Color]) VAR __result = CALCULATE(SUM('TableB'[Count]),'TableB'[Location]=__cur_location && 'TableB'[Color]=__cur_color) RETURN __resultMeasure = IF([Count A]<>[Count B],"yellow")Please apply [Measure] to the background conditional formatting of each field of the table visual.
Best Regards,
Gao
Community Support TeamIf 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--China Power BI User Group
Not sure I follow what you are asking. My thought was to somehow add the Count column from TableB to TableA and then if the Count is different, highlight the row.
Is the location the primary key, or the color? If you ask what is different you must also define what stays the same.