Forum Discussion
Related DAX Function
- Anonymous3 years ago
Hi ukaya19079 ,
When there is a one-to-many relationship between two tables, we usually use the RRELATED() function to get unique records from one side. You can create calculated columns in the fact table to verify it.
Column = RELATED(FactTable[Key])Similarly, if we are at one side (DimTable), there will be multiple records in the fact table table corresponding to one of the rows of DimTable, and we use the RELATEDTABLE () function to get the corresponding record in the fact table (a table).
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,
I am not sure how your desired outcome of the second (creating a new column on table Y with getting the column table X) looks like, but please try using RELATEDTABLE DAX function.
RELATEDTABLE function (DAX) - DAX | Microsoft Learn
Thank you Jihwan_Kim.
I just watched a tutarial about it. I don't know why but, if there is a 1 to many relation between 2 tables, RELATED DAX will work only on the table where there is many relationships, it won't work on the table where there is only 1 relation.
Thanks a lot for responding.
- Anonymous3 years agoNot applicable
Hi ukaya19079 ,
When there is a one-to-many relationship between two tables, we usually use the RRELATED() function to get unique records from one side. You can create calculated columns in the fact table to verify it.
Column = RELATED(FactTable[Key])Similarly, if we are at one side (DimTable), there will be multiple records in the fact table table corresponding to one of the rows of DimTable, and we use the RELATEDTABLE () function to get the corresponding record in the fact table (a table).
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