Forum Discussion
make two relations for two table HELP
- 6 years ago
Combine your columns in M or DAX
M: Table.AddColumn(alarmlist, "FullID", Text.Combine({Text.From("AlarmID"),Text.From("MachineID")})
DAX: alarmlist[FullID] = "" & [AlarmID] & [MachineID]
Do this for both tables and create your relationship between the 2 [FullID] columns, which should have be many-to-one events-to-alarmlist
Events that do not have a corresponding alarmlist entry (like when alarm ID = 0) will show up as (Blank) error codes
Combine your columns in M or DAX
M: Table.AddColumn(alarmlist, "FullID", Text.Combine({Text.From("AlarmID"),Text.From("MachineID")})
DAX: alarmlist[FullID] = "" & [AlarmID] & [MachineID]
Do this for both tables and create your relationship between the 2 [FullID] columns, which should have be many-to-one events-to-alarmlist
Events that do not have a corresponding alarmlist entry (like when alarm ID = 0) will show up as (Blank) error codes