Forum Discussion
syntax is incorrect
LOOKUPVALUE is defined here:
https://msdn.microsoft.com/en-us/query-bi/dax/lookupvalue-function-dax
Basically, you generally want 3 parameters:
- Result column - what you are trying to return
- Search column - the column to search for a value
- Search value - the value to search for in the Search column.
The syntax you have is odd. The third parameter is nonsensical. You have a mash-up of a column reference and then a text string. Perhaps if you can describe what you are trying to achieve?
Im trying to take this column from excell and move it into my BI table. I can get it into BI without the "2017 Part Number" but it just gives me blank cells instead of the text. The excell formula takes data from other excell sheets and thats essentially what im trying to do in BI
- v-huizhn-msft8 years agoMicrosoft Employee
Hi dkehoe32,
You can create a measure using the formula to get the expected result.= IF ( ISBLANK ( LOOKUPVALUE ( [D_colum], [column], "I2" ) ), "2017 Part Number", "New 2018 Part numbers" && LOOKUPVALUE ( [D_colum], [column], "I2" ) )
Thanks,
Angelia- dkehoe328 years agoHelper I
I just tried that formula and it says "Expressions that yield variant data type cannot be used to define calculated columns"
- v-huizhn-msft8 years agoMicrosoft Employee
Hi dkehoe32,
Please share a screenshot shown the DAX you used?
Thanks,
Angelia