Forum Discussion
How to make lookupvalue with if function in DAX
Hello,
I am trying to make a new column with a DAX-function where I look into another table and search for a column to find the value "credit memo". If the value is true then it will return a formula, else it will return a different formula.
So far I made something like this but it doesn't work:
Niels_T , thsi value from lookup should be compared
LOOKUPVALUE('xxxx NV$Sales Invoice + Cr_Memo Header'[Document Type],'xxxxNV$Sales Invoice + Cr_Memo Header'[Document Type], "Credit Memo")
Like have some value
if(not(isblank(LOOKUPVALUE('xxxx NV$Sales Invoice + Cr_Memo Header'[Document Type],'xxxxNV$Sales Invoice + Cr_Memo Header'[Document Type], "Credit Memo"))) ,
<Then> ,<else>)
1 Reply
- amitchandak
Super User
Niels_T , thsi value from lookup should be compared
LOOKUPVALUE('xxxx NV$Sales Invoice + Cr_Memo Header'[Document Type],'xxxxNV$Sales Invoice + Cr_Memo Header'[Document Type], "Credit Memo")
Like have some value
if(not(isblank(LOOKUPVALUE('xxxx NV$Sales Invoice + Cr_Memo Header'[Document Type],'xxxxNV$Sales Invoice + Cr_Memo Header'[Document Type], "Credit Memo"))) ,
<Then> ,<else>)