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
DavidQuerol
Frequent Visitor

A single value for column cannot be determined

Hi, i found similar posts but i cannot relate them to my problem.

I need to do a simple LEFT() function to catch the first 4 characters of a string column but i'm unable to do it.

I create a mesure like this:

Measure = LEFT ( DimProduct[Family] , 4)

[Family] is a colum where there is a string of 8 to 10 characters.


And i get the error 'A single value for column cannot be determined ...'

 

 

 

 

 
1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Hi @DavidQuerol

If you use it in a measure you will need to perform some kind of aggregation on the Family column first. 

This is due to the fact that the system has no way of knowing if there is going to more than 1 value in the Family column once the measure is calculated. 

Try this instead:

Measure = LEFT ( SELECTEDVALUE(DimProduct[Family]) , 4)

SELECTEDVALUE(DimProduct[Family]) will check to see how many values there are in the family column at the moment of the calculation and if there is only 1 it will return that value, otherwise it will return blank()

/ J



Connect on LinkedIn

View solution in original post

1 REPLY 1
tex628
Community Champion
Community Champion

Hi @DavidQuerol

If you use it in a measure you will need to perform some kind of aggregation on the Family column first. 

This is due to the fact that the system has no way of knowing if there is going to more than 1 value in the Family column once the measure is calculated. 

Try this instead:

Measure = LEFT ( SELECTEDVALUE(DimProduct[Family]) , 4)

SELECTEDVALUE(DimProduct[Family]) will check to see how many values there are in the family column at the moment of the calculation and if there is only 1 it will return that value, otherwise it will return blank()

/ J



Connect on LinkedIn

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