Forum Discussion
Filter depending on another filter
- Anonymous5 years ago
The problem you are facing is that Filter 1 propagates to clients and the invoices but stops there. It is not filtering activity because the there is no filter direction from Invoice to Activity. Are companies directly related to activities? If so, then you need to remodel the data. If not, then it is going to be difficult helping you without understanding the reports you need to develop. I can suggest a solution but it might ruin other reports for you. You need to be aware of the impact of this change before doing it. One solution is to change the filter direction of the relationship between Invoice and Activity to "Both". But again, as I told you, this might ruin other reports for you.
Another solution you might consider is to include the field of the Activity table you are using as a filter in the "Invoice" table through a Related() or Lookup() function. Then you can use the field from the Invoice activity for Filter2.
Hi Anonymous ,
By default, the filters will filter each other. So the behavior you are looking for should be there by default. If it is not working, then it must be one of 2:
1- The interactions of Filter 1 are not set properly. For that, you can click on Filter 1 -> Format -> Edit Interactions -> make sure it filters the second filter.
2- The data model doesn't have correct relationships between the tables containing Companies and Activities. For that, you need to create a relationship in the model and make sure it has the correct direction.
- Anonymous5 years agoNot applicable
I tried to make a relation between the 2 tables BUT it is a little bit more complicated.
PowerBI let me know that it is "already connected" by another relation.
In fact :
Company -> Client -> Invoice <- Activity
How can I do better?
- Anonymous5 years agoNot applicable
The problem you are facing is that Filter 1 propagates to clients and the invoices but stops there. It is not filtering activity because the there is no filter direction from Invoice to Activity. Are companies directly related to activities? If so, then you need to remodel the data. If not, then it is going to be difficult helping you without understanding the reports you need to develop. I can suggest a solution but it might ruin other reports for you. You need to be aware of the impact of this change before doing it. One solution is to change the filter direction of the relationship between Invoice and Activity to "Both". But again, as I told you, this might ruin other reports for you.
Another solution you might consider is to include the field of the Activity table you are using as a filter in the "Invoice" table through a Related() or Lookup() function. Then you can use the field from the Invoice activity for Filter2.
- Anonymous5 years agoNot applicable
And what do you think of adding a merging request by ID and just take one field of the activity table ? If I understand you well, it's like a lookup function.
Can this be a problem for the future of my report ?
Thanks for all your answers by the way.