LookupValue Loop question

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
774
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I have a formula in DAX for Power Pivot that is working, but I want to be able to look by including an if()
Formula 1 works great, but instead of having multiple columns I want to be able to change the Criteria for check[Search1] to a formula, but I cant get the Formula 2 to work without a "list of Multiple values was supplied where a single value was expected"

Code:
Formula 1
LOOKUPVALUE(Source[Title],Source[Search1.1],'check'[Search 1.1],Source[CAllRank],"1",Source[Date],check[Date],Source[Call Outcome],"Success")))))

Formula 2
if(LOOKUPVALUE(Source[Title],Source[Search1.1],'check'[Search 1.1],Source[CallRank],"1",Source[Date],check[Date],Source[Call Outcome],"Success")>blank(),
LOOKUPVALUE(Source[Title],Source[Search1.1],'check'[Search 1.1],Source[CallRank],"1",Source[Date],check[Date],Source[Call Outcome],"Success",

thanks in advance.
Gavin
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi,

Just for clarity are you sure you've copied the full formula 2?
Reason for asking it lacks closing parentheses.
After "Success" is a comma as closure for the LOOKUPVALUE function which should be a parentheses and a second one is lacking for closure of the IF THEN part

So try this instead of your formula 2 and see if this olves the issue.
Excel Formula:
if(LOOKUPVALUE(Source[Title],Source[Search1.1],'check'[Search 1.1],Source[CallRank],"1",Source[Date],check[Date],Source[Call Outcome],"Success")>blank(),
LOOKUPVALUE(Source[Title],Source[Search1.1],'check'[Search 1.1],Source[CallRank],"1",Source[Date],check[Date],Source[Call Outcome],"Success"))
 
Upvote 0
Good morning @jorismoerings

I have tried the amendments to the formula as per above, and I still get the same error message of multiple tables.
If I just the 1st line without if part it works so I dont understand where the multiple table part comes from?

thanks
 
Upvote 0
There are other solutions to get to this result as well however with this little information to go on, the guessing part increases exponentially.
Could you drop a testfile (without sensitive data of course) in public fileshare so i can take a look.
 
Upvote 0
I will see what I can pull together, what others ways would you suggest using as I hadn't really looked at anything else?
 
Upvote 0

Forum statistics

Threads
1,225,563
Messages
6,185,689
Members
453,314
Latest member
amitojsd

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top