The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have 7 tables that are all connected via one to many and many to many relationships, however I need a new table created just referencing specific columns from all these connected tables.
Is there a way to do this with DAX?
Solved! Go to Solution.
Not sure of the purpose but here's one way of doing it. For many-to-many relationships, you might need to use RELATEDTABLE and aggregate functions to correctly summarize the data.
NewTable = SELECTCOLUMNS(
Table1,
"NewColumnA", Table1[ColumnA],
"NewColumnB", RELATED(Table2[ColumnB]),
"NewColumnC", RELATED(Table3[ColumnC]),
...
)
Proud to be a Super User!
Not sure of the purpose but here's one way of doing it. For many-to-many relationships, you might need to use RELATEDTABLE and aggregate functions to correctly summarize the data.
NewTable = SELECTCOLUMNS(
Table1,
"NewColumnA", Table1[ColumnA],
"NewColumnB", RELATED(Table2[ColumnB]),
"NewColumnC", RELATED(Table3[ColumnC]),
...
)
Proud to be a Super User!