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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.