Forum Discussion
Visual not filtering correctly
As suspected, the direction of relationships in the model doesn't allow the filtering.
You can read up on this here https://radacad.com/what-is-the-direction-of-relationship-in-power-bi
Hi HotChilli and Anonymous ,
Thanks for the information. I read the article and changed the cross filter direction between the Date and Currency table from Single to Both. This did change the values in the Cards, but not really as expected. I could not figure out how to share the file via OneDrive, but here is the sample data of the tables:
Bulking Table:
| Date | Currency | Gross Vol | Net Vol | Count |
| 1/04/2020 | AUDUSD | 143,259.93 | 142,439.25 | 1 |
| 3/04/2020 | AUDEUR | 111,351.11 | 111,301.29 | 1 |
| 30/04/2020 | AUDUSD | 201,375.78 | 96,021.72 | 1 |
Currency Table:
| Date | Currency | Volume |
| 1/04/2020 | AUDUSD | 23,819.65 |
| 1/04/2020 | AUDUSD | 12,711.68 |
| 1/04/2020 | AUDUSD | 410.34 |
| 1/04/2020 | AUDUSD | 43,228.76 |
| 1/04/2020 | AUDUSD | 0.36 |
| 1/04/2020 | AUDUSD | 138.22 |
| 1/04/2020 | AUDUSD | 10,272.25 |
| 1/04/2020 | AUDUSD | 52,678.67 |
| 1/04/2020 | AUDEUR | 45,059.40 |
| 1/04/2020 | AUDEUR | 38,674.01 |
| 3/04/2020 | AUDEUR | 107,396.14 |
| 3/04/2020 | AUDEUR | 3,930.06 |
| 30/04/2020 | AUDUSD | 66,612.06 |
| 30/04/2020 | AUDUSD | 52,677.03 |
| 30/04/2020 | AUDUSD | 4,862.65 |
| 30/04/2020 | AUDUSD | 6,748.07 |
| 30/04/2020 | AUDUSD | 40,170.37 |
| 30/04/2020 | AUDUSD | 29,950.85 |
When I click on AUDUSD in the bar chart, I get the correct result:
But when I click on AUDEUR, I get incorrect figures for some reason:
What I am expecting for AUDEUR is:
Gross: 111,351.11
Net: 111,301.29
Am I doing something wrong with the relationships?
Thanks in advance.
- Anonymous6 years agoNot applicable
Hi artblakey ,
Please create the relationship between Bulking and Currency table based on field "Currency".
Best Regards
Rena
- artblakey6 years agoHelper I
Hi Anonymous
I created the relationship as suggested, but I'm still getting the same result. I also have a Dates table (based on field "Date") so I'm not sure if this is affecting the result? This is how the relationships are currently set up:
- Anonymous6 years agoNot applicable
Hi artblakey ,
Please active the relationship which be created between Bulking and Currency table based on Currency field and de-active or remove the left 2 relationships.
Best Regards
Rena