Forum Discussion
Anonymous
1 year agoNot applicable
Issues with Filtering Across Indirect Relationships in Power BI between two tables
I'm having trouble with filtering across multiple tables where there's an indirect relationship, and I'd appreciate some guidance on how to fix this. Here's my setup: Food Entities - Table showing...
- Anonymous1 year ago
Hi Anonymous ,
Please create a new calendar table:
Calendar = CALENDAR ( MIN ( MIN ( 'Food_Entities'[Publishedon] ), MIN ( 'Relation_Association'[PublishedOn] ) ), MAX ( MAX ( 'Food_Entities'[Publishedon] ), MAX ( 'Relation_Association'[PublishedOn] ) ) )Two-side relationships should be avoided in the model as much as possible, and if needed please turn them on in the code:
Count_contaminant = CALCULATE ( COUNT ( 'Relation_Association'[food] ), CROSSFILTER ( 'Intermediate table'[Intermediate table], 'Food_Entities'[Food], BOTH ) )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
HotChilli
Community Champion
1 year agoI don't think that answers my first question. Both tables have Food in them and they both have dates but what do they have to do with each other?