A table of multiple values error

123rickfear

Active Member
Joined
Jun 19, 2015
Messages
446
Hi, this was working last week, now appear to be causing an error.

I have 2 tables, one is called inbox and one is sent items.

inbox has from, subject, cc, received time, powerapps id as standard

sent items has the same plus some formula.

Original Subject = if(left('Sent Items'[SUBJECT],4)="FW: ",'Sent Items'[SUBJECT],right('Sent Items'[SUBJECT],len('Sent Items'[SUBJECT])-4))

Received Day = lookupvalue(Inbox[RECEIVED TIME],Inbox[SUBJECT],'Sent Items'[Original Subject])

Original subject works fine. Received day now displays the message "a table of multiple values was supplied where a single value was expected".

Does anyone have any ideas why this is happening?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Re: A tbale of multiple values error

From the DAX documentation:

If multiple rows match the search values and in all cases result_column values are identical then that value is returned. However, if result_column returns different values an error is returned.

Did your source data change to throw off the error? Two messages with the same received time?
 
Upvote 0
Re: A tbale of multiple values error

yes in the sent items table.

Is this the issue then?

Is there a way around this?
 
Upvote 0
Re: A tbale of multiple values error

Hard to know if that's the issue without seeing the data. If you use Power Query for the data load try eliminating duplicates to see if that solves your issue and confirms the problem.

If it is the problem it's hard to say what might help. You could introduce some "jitter" into the received time when you import it... add a random number of seconds or minutes so that everything is likely to be unique.
 
Upvote 0
Re: A tbale of multiple values error

Hi all, thanks for all your help.

I fixed this by creating a new column that was sender & date, which has removed the possibility of duplicates.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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