Forum Discussion
Error - multiple values was supplied where a single value
- 5 years ago
As you cannot use MAX or MIN function with text to force unicity for that columns, you can use FIRSTNONBLANK or LASTNONBLANK functions, only if the vendor name is not somenthing crucial in your report. Is a workaround we often use in Sql queries, when details are not important.
You can check this post from community for reference https://community.powerbi.com/t5/Community-Blog/LASTNONBLANK-amp-FIRSTNONBLANK-How-To-Use-This-Two-DAX-Function/ba-p/1403721#:~:text=These%20two%20functions%20are%20pretty,FIRSTNONBLANK%20returns%20the%20first%20value.
Is important to know that the values for each column will be first or last (depends on the function used) sorted in alphabetical order,
Hi,
It seems that, at refresh, one of Vendor, Created by or Plant has at least 2 distinct
values for the same combination of the values for the rest of the columns. Start to investigate there.
After that decide what you want to keep for those 3 columns and ask here for help if you need further assistance.
- mb03075 years agoResponsive Resident
Distinct is just returning the text - vendor, plant and creator names. I don't want those to be the criteria of table summary.
MiraAciu can i just get first vendor, plant and creator name to complete the table. I don't want these three fields to be the table summary criteria.
- amitchandak5 years agoSuper User
- MiraAciu5 years agoRegular Visitor
As you cannot use MAX or MIN function with text to force unicity for that columns, you can use FIRSTNONBLANK or LASTNONBLANK functions, only if the vendor name is not somenthing crucial in your report. Is a workaround we often use in Sql queries, when details are not important.
You can check this post from community for reference https://community.powerbi.com/t5/Community-Blog/LASTNONBLANK-amp-FIRSTNONBLANK-How-To-Use-This-Two-DAX-Function/ba-p/1403721#:~:text=These%20two%20functions%20are%20pretty,FIRSTNONBLANK%20returns%20the%20first%20value.
Is important to know that the values for each column will be first or last (depends on the function used) sorted in alphabetical order,
- mb03075 years agoResponsive Resident