Forum Discussion

harirao's avatar
harirao
Icon for Post Prodigy rankPost Prodigy
3 years ago
Solved

Function 'LOOKUPVALUE' does not support comparing values of type Number with values of type Text. Co

Hi All,

I'm creating a new column in a Main table as LOOKUPVALUE "Product Column in text format".
In cost Table "Part No Column in text format" & '"Total Colum in INTEGER format".
The following format example:


Below is a DAX column created, where I am getting an error
"Function 'LOOKUPVALUE' does not support comparing values of type Number with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values."

 

TEST! = LOOKUPVALUE(
    Icost[Part No.],
         Icost[Total],
             FORMAT(PATHITEM ('Main Table'[Product],1,0), "NA"))

Help me to fix this issue.
 
Thank you