The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a formula that goes:
IF (column1 <> BLANK(), LOOKUPVALUE (....), column2)
However that formula can still return blanks, as not all items that are being lookedup have an equivalent in the other table, so I think it's pulling blanks from there instead of using column2.
What I would like to do is to create a formula that basically says:
IF( IF (column1 <> BLANK(), LOOKUPVALUE (....), column2) = BLANK(), column3)
But this merely increases the number of blank values being returned, so this approach isn't working. Is there an equivalent formula that would basically say: If the results of the first part of the statement are still returnting blank results, use column3?
Hi,
Please check the below DAX as it is giving the expected results as per your scenario.
SalfromTable_2 =
IF (
ISBLANK ( Table_1[ID] ),
Table_1[Sal1],
LOOKUPVALUE ( Table_2[Sal2], Table_2[ID], Table_1[ID] )
)
Appreciate a Kudos!
If this helps and resolves the issue, please mark it as a Solution!
Regards,
VN
User | Count |
---|---|
64 | |
55 | |
53 | |
50 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |