Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
Can anyone have advice for below?
I am trying to do lookup with if condition and below is my calculated column and I am getting below error
“Function LOOKUPVALUE expects a column reference as argument number 4.”
calcualte Column in MAIN TABLE = IF(LOOKUPVALUE(Sheet2[Avg],Sheet2[Product Name],[Product],Sheet2[Product Name]<>BLANK(),"Empty"
Main Table | Lookup Table | |||
Product | Avg | Product Name | Avg | |
A |
| A | 100 | |
B |
| B | 200 | |
C |
| D | 300 | |
E |
| E |
|
Solved! Go to Solution.
@Anonymous
A zero. Simply the number: 0.
NewAvgColumn = VAR _LookedUpAvg = LOOKUPVALUE ( Sheet2[Avg], Sheet2[Product Name], MainTable[Product] ) RETURN IF ( NOT ISBLANK ( _LookedUpAvg ), _LookedUpAvg, 0 )
But I'm not sure that's the best option because, how will you tell if the average was actually a zero or the name wasn't present in the other table? I would stick with the blank as we had in the first version
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |