Forum Discussion
mejiaks
7 years agoFrequent Visitor
joining tables
Hi guys I have two tables Kms and Incidents in both tables i have the fileds Country, Division, Month, Year The only difference is the last field Kms.[Total Kms] Incidents.[Total I...
- 7 years ago
Hi mejiaks,
You could create a calculated table with below DAX formula:
Join Table = ADDCOLUMNS ( Kms, "Total Incidents", LOOKUPVALUE ( Incidents[Total Kms], Incidents[Country], Kms[Country], Incidents[Division], Kms[Division], Incidents[Month], Kms[Month], Incidents[Year], Kms[Year] ) )Best regards,
Yuliana Gu
v-yulgu-msft
Microsoft Employee
7 years agoHi mejiaks,
You could create a calculated table with below DAX formula:
Join Table =
ADDCOLUMNS (
Kms,
"Total Incidents", LOOKUPVALUE (
Incidents[Total Kms],
Incidents[Country], Kms[Country],
Incidents[Division], Kms[Division],
Incidents[Month], Kms[Month],
Incidents[Year], Kms[Year]
)
)
Best regards,
Yuliana Gu
mejiaks
7 years agoFrequent Visitor
That is EXACTLY what I needed and EXACTLY what I was looking for
simple, straight forward and fast
Thanks a lot