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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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

Hello all,

here is my problem. I don't know how this happened. Can someone please help me? I have used this function many times, but this error is the first. I found every time it matches, it will say multiple values. 

Lucasw_0-1662661919923.png

Thank you 

2 REPLIES 2
PabloDeheza
Solution Sage
Solution Sage

Hi there!

If you are working on a measure then your code wont work because you are missing a function like MAX() or SELECTEDVALUE() on the column you are using, in this case 'Nonconformance...'[NC Initiate Corrections]. Eitherway, your code should work on a calculated column.

 

Let me know if my answer was useful!

Anonymous
Not applicable

Hi @PabloDeheza 

Thanks for replying. Do you mean I should do this?

NC Use As Is = SWITCH(TRUE(), SELECTEDVALUE('Nonconformance UAI w/ Supplier Grid'[NC Initiate Corrections])= "Use-As-Is"
, "Use As Is", "Not Use As Is")
But this not works. I'm sure I have Use-As-Is in my data, however, this code only returns Not Use As Is

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors