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

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.

Reply
EMauterer
Frequent Visitor

Sum error on text function

This has to be something obvious I'm missing.  I'm trying to create a new text column that pulls a text value from a different table, and populates the column with a text string if the lookup is not found in the other table. 

 

My formula is:  CustomerChannel = if(isblank('Channel'[Channel]),"Wholesale",'Channel'[Channel])

 

The error I am getting is: 

A single value for column 'Channel' in table 'Channel' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

Ideas?

1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @EMauterer,



This has to be something obvious I'm missing.  I'm trying to create a new text column that pulls a text value from a different table, and populates the column with a text string if the lookup is not found in the other table. 


What's the relationship between the two tables? If there is a many to one(*:1) relationship between your current table you want to add the new column into and your "Channel" table, then the formula below should work in your scenario.

 

CustomerChannel =
IF (
    ISBLANK ( RELATED ( 'Channel'[Channel] ) ),
    "Wholesale",
    RELATED ( 'Channel'[Channel] )
)

If that is not the case, please post your table structures with some sample data and your expected result. Smiley Happy

 

Regards

View solution in original post

5 REPLIES 5
v-ljerr-msft
Employee
Employee

Hi @EMauterer,



This has to be something obvious I'm missing.  I'm trying to create a new text column that pulls a text value from a different table, and populates the column with a text string if the lookup is not found in the other table. 


What's the relationship between the two tables? If there is a many to one(*:1) relationship between your current table you want to add the new column into and your "Channel" table, then the formula below should work in your scenario.

 

CustomerChannel =
IF (
    ISBLANK ( RELATED ( 'Channel'[Channel] ) ),
    "Wholesale",
    RELATED ( 'Channel'[Channel] )
)

If that is not the case, please post your table structures with some sample data and your expected result. Smiley Happy

 

Regards

That worked.  Thank you!!

Hi @EMauterer,

 

Great to hear the problem got resolved! Could you accept the corresponding reply as solution to close this thread? Smiley Happy

 

Regards

Sean
Community Champion
Community Champion

This error indicates you are trying to create a Measure.

Try again make sure you click New Column not New Measure

I get the same error whether I set this up as a measure or a column.  ? 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.