Forum Discussion
Anonymous
6 years agoNot applicable
Creating Dimtable with DAX
Hi, I am creating a dimtable from four different tables. I am using DISTINCT to select the columns. The columns are Service and Type. As you see in the DAX formula and the screenshot I have only...
sturlaws
Resident Rockstar
6 years agoHi Anonymous
assuming that all your tables have the column [Type], you can use this code
Dimtable =
DISTINCT (
UNION (
SUMMARIZE ( 'Loan', 'Loan'[Service], 'Loan'[Type] ),
SUMMARIZE ( 'Borrower', 'Borrower'[Service], 'Borrower'[Type] ),
SUMMARIZE ( 'Pipeline', 'Pipeline'[Service], 'Pipeline'[Type] )
)
)
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.