LookupValue Loop question

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,223,702
Messages
6,173,961
Members
452,539
Latest member
delvey

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