Forum Discussion
Summarize three table fields in one table
As suggested by the other poster, you can append both Table2 and Table3 into one single "dimension" table and establish a 1:N relationship between the appended table and the "fact" table which has got the Amount
Then you can use RELATED() function with ISBLANK() to create a calculated column that will check if the source has a corresponding customer and if it doesn't it will pull up vendor. So we are looking at two RELATED() calls.
Keep in mind that you can do this operation without appending the tables and it would work just fine. But probably the real question would be how many rows are we looking at here in the "fact" table with "Amount" column. It might not be a good idea to create a calculated column there, especially with two RELATED() calls.
Hi karun_r ,
Rows are in millions. As suggested by you, this will not be a good idea to create a calculated column there, especially with two RELATED() calls.
- karun_r6 years agoMicrosoft Employee
Is it possible to do the operation equivalent to RELATED during your query pull ? If your fact table has millions of rows, what is the source from which you are pulling it from ? If it's a SQL Server or any relational DB, it might be wise to do the operation there instead of thinking of ways to do in DAX. However, please let us know if you find any suitable solution for this without RELATED()