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.
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 Thanks
Solved! Go to Solution.
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
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] ) )
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |