Forum Discussion
Filter with multiple relationship
- 7 years ago
Doublecheck the data type on GradeValue.Value and make sure that it's still INT.
If it's int take a look in the visualizations pane and make sure that "Sum" is selected on the settings for GradeValue.Value.
This is definitly an issue with dataformatting of some sort. Power BI defaults to aggregation when you have numeric columns so you should never have a scenario like the one you're describing!
Hi dd321 ,
In your scenario, it should transfer the filter on Student or University to the GradeValue and Grade table. Because the relationship is one to many, one to many, one to one.
Best Regards,
Teige
Hi TeigeGao , thank you for you reply and you are correct. The database diagram is what I initially wanted to have.
However, the problem is the relationship GradeValue and Grade does not have a one-to-one relationship in the database because in the database, there is only one table GradeValue where each row has foreign key to Student table and foreign key to Grade table. This means there are multiple rows which references to the same row in Grade table, therefore the relationship is:
University 1--N Student
Student 1--N GradeValue
GradeValue N--1 Grade
Also check my previous reply to tex628 :)