Forum Discussion
Relationship fail when adding column from another table (where relationship seems to be correct)
- 10 years ago
Your model diagram would be quite helpful here, but I can take a guess. You're trying to use a bare column reference in a Calculated Column:
// DAX // Calculated Column // Incorrect syntax MyNewColumn = 'LookupTable'[Field] // The above is incorrect because relationships are not evaluated by // default in a row context. // Correct MyNewColumn = RELATED( 'LookupTable'[Field] )
Ninja edit: Also, if you already have a dimension (lookup table), there's no need to bring your sort field into the primary fact table. You
canabsolutely should use your dimension fields as the labels and categories in visualizations.
Your model diagram would be quite helpful here, but I can take a guess. You're trying to use a bare column reference in a Calculated Column:
// DAX // Calculated Column // Incorrect syntax MyNewColumn = 'LookupTable'[Field] // The above is incorrect because relationships are not evaluated by // default in a row context. // Correct MyNewColumn = RELATED( 'LookupTable'[Field] )
Ninja edit: Also, if you already have a dimension (lookup table), there's no need to bring your sort field into the primary fact table. You can absolutely should use your dimension fields as the labels and categories in visualizations.
- robbie33710 years agoAdvocate I
Yuu are a scholar and a gent sir.
Thank you