Forum Discussion
Get lookup values based on multiple conditions
Hi DataInsights ,
Thank you very much for your help!!
I tried the calculated column but I got the below error because in my MF table the ID column datatype is whole number where as in Data table all the columns are Text. So Lookup function is not working with this datatype mismatch.
But if i change the data type of ID column in MF table to Text then the DAX query works perfectly fine.
Is it possible to convert the datatpye of ID column in MF table to Text when writing the dax code instead of changing it in Power query.
Thanks in Advance!!
Regards,
Krishna.
It's possible, but not recommended. Data types should be consistent throughout the data model. For example, the column Order Date should be a date data type throughout the data model. If Order Date is a date data type in some tables, and a text data type in other tables, you will encounter problems. I highly recommend having the same data type in both tables for the ID column.