Possible fix 1: Ensure only using fields from one table in visual
I'm guessing that you accidentally picked up a field on both tables. It should fail in Power BI Desktop too.
Check the field pane for the failing visual. Make sure only one table is being used. This will cause the error you describe:
Possible Fix 2: Rebuild the table
Often it is easier to just rebuild a visual than try to figure out what went wrong. I would just try to rebuild the failing visual from scratch. Don't copy from the other visual.
Possible Fix 3: Find the culprit
While fix 2 often works, I would still want to know why! I would use the Measure Killer External Tool, which is great at identifying every field used in a report, including things like filters and conditional formatting. If it isn't the obvious problem in Fix #1, this should find what is causing the problem.