Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
I am a beginner and am learning on my own and I really appreciate all the great knowlegde and support here.
Well, i have the following tables:
Table A:
Order | Boxs |
123456 | 12 |
518918 | 87 |
556959 | 20 |
787717 | 35 |
Table B
Order | Pending |
123456 | 12 |
518918 | 87 |
556959 | 25 |
787717 | 36 |
All i wanna do is compare the columns Boxs and Peding, like:
If(Boxs = Pending, "ok", "nok")
But i i dont how to do it because its 2 columns in different tables.
Someone can help me?
File:
https://drive.google.com/drive/folders/1HcMUlF0eddyPO6LA6XLgRR_mSwlsonSA?usp=sharing
Notes:
Table A = Base CL 10052021
Order = PL
Boxs = QTDE_CXS
Table B = SAP (2)
Order = PL
Pending = Pendente Faturamento
Solved! Go to Solution.
Hello @Anonymous,
Please create a calculated column in Table A:
Hi @Anonymous ,
I agree with the solution given by @rajulshah and tested it, and got the correct result:
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rajulshah
It didnt work for me because i need to compare my columns Boxs x Pending, like
if( Boxs = Pending, "ok", "nok")
Your dax is just creating a column in my table A with the Orders Number from table B
Hi @Anonymous ,
There is no error in the written formula. You need to understand the lookupvalue function. Its function is to retrieve the values that meet all the matching conditions from the table (and the matching condition in the above formula is whether Boxs = Pending), and the if function determines the value that meets the conditions. It is "ok", otherwise it is "nok".
For the detailed usage of the formula, please refer to the official document.LOOKUPVALUE function (DAX) - DAX | Microsoft Docs
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @Anonymous,
Please create a calculated column in Table A:
Hi @rajulshah
It didnt work for me because i need to compare my columns Boxs x Pending, like
if( Boxs = Pending, "ok", "nok")
Your dax is just creating a column in my table A with the Orders Number from table B
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |