Forum Discussion
USERELATIONSHIP not working as expected. Could use some suggestions.
- 4 years ago
Hi Joe_Marangos ,
As the relationship only active in the measure calculation, NO2_Cat and NOX_Cat can't be filtered by the Legend_Table, they don't actually have a relationship.
For your purpose, the data model should be modified or create a new table.
Method1.
In Power Query, unpivot the NO2_Cat and NOX_Cat columns.
They'll be in one column, so it's easy to build relationships.
Method2.
Create a new table, separate NOX_Cat.
NOX_Cat Table = SELECTCOLUMNS('Pollution_Data',"NOX_Cat",'Pollution_Data'[NOX_Cat])Both tables are related to Legend_Table.
This is an overall idea, the specific operation should be combined with your sample.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Joe_Marangos ,
As the relationship only active in the measure calculation, NO2_Cat and NOX_Cat can't be filtered by the Legend_Table, they don't actually have a relationship.
For your purpose, the data model should be modified or create a new table.
Method1.
In Power Query, unpivot the NO2_Cat and NOX_Cat columns.
They'll be in one column, so it's easy to build relationships.
Method2.
Create a new table, separate NOX_Cat.
NOX_Cat Table = SELECTCOLUMNS('Pollution_Data',"NOX_Cat",'Pollution_Data'[NOX_Cat])
Both tables are related to Legend_Table.
This is an overall idea, the specific operation should be combined with your sample.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.