Check if table visual has any column from specific table
I have a table visual that is showing column fields coming from two tables (A and B) having as relationship:
- One two many
- Both filtering Direction
- Not all data from both tables are having link together
In such configuration, let's say I have fields from table A in my visual table as columns, If I add new fields coming from Table B, it will filter down the displayed data to only intersection data existing in A and B, which is fine.
Thus, the amount of rows being displayed in my table visuals is depending on the columns being added to my visual table fields.
My question now is how to calculate this amount of rows in a measure?
I am missing a triger with an if condition to know if columns from one of the tables had been added to the table visual or not.
ISFILTERED is not working as adding a field value to a table is actually not a direct filter and ISCROSSFILTERED is always TRUE as both tables have cross filtering relationship.
I would need a way to check if field or table is added to visual or something that can replicate the filtering behaviour that is happening when the table visual is filtering the displayed rows when columns from both tables are added together.