Forum Discussion
How find the most computation expensive calculated columns
var checkSource = VALUES(Fact_Table[Source])
same error. I've only included a portion of the actual logic.
- lbendlin2 years ago
Super User
you are attempting to return a table inside a row.
remove lines 2,3 and 12
- eddd832 years ago
Resolver I
So when i add back in the related variables, i get this message. FYI this is only 1 of many related variables in this logic)
- lbendlin2 years ago
Super User
remember that EVALUATE must return a table. RELATED will always return a scalar value for a single column. You are mixing too many concepts at once.
Check your data model, then formulate the right DAX. You can also let the "DAX Query View" do the heavy lifting for you when you ask it to create the code for a calculated column or a measure etc.
- eddd832 years ago
Resolver I
the whole point of this exercise was to compare different columns and why some columns have a greater effect on the model efficiency/speed. The above logic is the correct DAX for my business case.