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

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.

Reply
jcooksnappy1
New Member

LOOKUPVALUE - A table of multiple values was supplied where a single value was expected

Dear Forum

 

I'm trying to insert a calcultead column into my table using two search criterias, and the formula is as follows:

 

 = LOOKUPVALUE('COGS (inc VAT)'[PRODUCT COGS*],'COGS (inc VAT)'[Wesite Name],mergedInvoiceRevenue[website_nm],'COGS (inc VAT)'[Cobrand Name],mergedInvoiceRevenue[cobrand_nm])

 

I have checked that there are no duplictae PROD_ID's but I'm still getting an error messgae to say ''a table of multiple values was supplied where a single value was expected''. The expected result is the far right column on the top table.

 

Can anyone help me overcome this problem - I have attached a screenshot of the table setup for both tables.

 

Many ThanksCapture1.JPG

 

 

2 ACCEPTED SOLUTIONS

Thanks @Zubair_Muhammad, appreciate your help.

 

The formula does not error, but returns blank values for all instances? Any ideas?

View solution in original post

Thanks @Zubair_Muhammad it did solve it, the table was just updating.

Many Thanks

View solution in original post

4 REPLIES 4
Zubair_Muhammad
Community Champion
Community Champion

Hi @jcooksnappy1

 

Try this one

 

=
CALCULATE (
    FIRSTNONBLANK ( 'COGS (inc VAT)'[PRODUCT COGS*], 1 ),
    FILTER (
        'COGS (inc VAT)',
        'COGS (inc VAT)'[Wesite Name] = mergedInvoiceRevenue[website_nm]
            && 'COGS (inc VAT)'[Cobrand Name] = mergedInvoiceRevenue[cobrand_nm]
    )
)

Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

@Zubair_Muhammad , thanks!

 

You've saved my day today!

 

Perfect!

Thanks @Zubair_Muhammad, appreciate your help.

 

The formula does not error, but returns blank values for all instances? Any ideas?

Thanks @Zubair_Muhammad it did solve it, the table was just updating.

Many Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.