Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
TomG
Regular Visitor

Lookupvalue error: A table of multiple values was supplied where a single value was expected.

Hi guys,

 

I'm trying to retrieve a value from another column using the DAX function LOOKUPVALUE(), but I'm getting a very annoying error: A table of multiple values was supplied where a single value was expected.

 

I'm trying to execute the following DAX formula:

 

next trans name = VAR visord = [order_within_visitor] VAR visid = [visitor_id] RETURN 
if(visord = MAXX(FILTER('public pageview', [visitor_id] = visid), 'public pageview'[order_within_visitor]), 
"Exit",
LOOKUPVALUE([page_transname], 'public pageview'[order_within_visitor], (visord+1), 'public pageview'[visitor_id], visid ))

 

I want to retrieve the next value of a series and put it in the "next trans name" field. I need to check if it is the last value of the series, because it should have a different behaviour when it is. If it's not the last number in the series, it should lookup the page_transname for that record and put it in the "next trans name" field.

 

I have something like the following datastructure (very much simplified):

 

visitor_idorder_within_visitorpage_transname
01Home
02About
03Search
11Home
12Detail

 

Does someone know what the problem might be?

 

Thanks!

1 ACCEPTED SOLUTION
TomG
Regular Visitor

Tackled the problem! Happens to be that there are 2 duplicate values in my dataset of 100,000 records... Didn't see that!

View solution in original post

1 REPLY 1
TomG
Regular Visitor

Tackled the problem! Happens to be that there are 2 duplicate values in my dataset of 100,000 records... Didn't see that!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.