Forum Discussion
Date Table doesn't filter charts properly
- Anonymous3 years ago
Hi uif19085 ,
The cross-filter needs to be changed to Both:count of artrfactid = CALCULATE(COUNT('Table1'[ArtefactId]),CROSSFILTER('Table2'[ArtefactId],'Table1'[ArtefactId],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
Hi uif19085 - at least based on the file you sent, trying to filter data from Table1 via Table2 won't have any effect, because the relationship between Table1 and Table2 only goes in one direction.
Even if you changed that, filtering on Snapshot only changes the artifact ID, and each artifact ID only has one entry in Table1. With no filters at all, you'll only ever have seven records. Filtering on Snapshot will only return matching ArtifactIds, which will always return one record each.
Basically, the model you provided is working as intended, given the data and its setup. If there's another problem for us to solve, it's not captured in this sample.
RMDNA Thank you for your answer, then can you help me with an advice regarding the schema of these tables, which would be the best in terms of performance, my workaround was to bring everything in one table, but i don't want that, is there a better way to have a table with dates and other with data so i can filter on them?
- Anonymous3 years agoNot applicable
Hi uif19085 ,
The cross-filter needs to be changed to Both:count of artrfactid = CALCULATE(COUNT('Table1'[ArtefactId]),CROSSFILTER('Table2'[ArtefactId],'Table1'[ArtefactId],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