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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
frost789
Helper I
Helper I

Why does VALUES(Sales[Channel]) function returns an error in a table visual?

The VALUES function returns a single-column table of unique values. I have a TestMeasure in the Key Measures measure table. When I dragged it into the table visual, I got an error. Why am I not getting the result I expect it? (which is a column showing "Distributor", "Export", "Wholesale")

 

https://limewire.com/d/ZP6YZ#ouJjwdr3ag

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @frost789 

When you use VALUES(Sales[Channel]) inside a measure, the result is not a single value.
VALUES returns a table object (a one-column table of distinct values), and a table cannot be placed directly in a visual that expects a single scalar value.
That’s why you get an error when dragging the measure into a table visual.

A measure must always return one value, not a column.

If your goal is to display a list of the distinct channels inside one cell of the visual, wrap VALUES with CONCATENATEX, for example:

Channels =
CONCATENATEX( VALUES(Sales[Channel]), Sales[Channel], ", " )

Ritaf1983_0-1765506998717.png

 


This returns a text string, which can be shown in any visual.

If your intention is to create a physical column or a table containing the unique channels, then VALUES must be used in a calculated table, such as:

ChannelsTable =
VALUES(Sales[Channel])

Ritaf1983_1-1765507088239.png

Ritaf1983_2-1765507121735.png

 


This creates a proper table object that Power BI can display.

Yes — this is the correct technical reasoning:
• VALUES returns a table, not a scalar
• Measures cannot return tables
• CONCATENATEX converts the table into a usable single value
• For physical modeling, use a calculated table instead

The upfated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

4 REPLIES 4
v-karpurapud
Community Support
Community Support

Hi @frost789 

We have not received a response from you regarding the query and were following up to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

 

Thank You.

v-karpurapud
Community Support
Community Support

Hi @frost789 

I would also like to thank you @GeraldGEmerick  and  @Ritaf1983 for your active participation and for sharing solutions within the community forum. 

I hope the information provided helps resolve your issue. If you have any further questions or need additional assistance, please feel free to contact us. We are always here to help.

 

Best regards,
Community Support Team.

Ritaf1983
Super User
Super User

Hi @frost789 

When you use VALUES(Sales[Channel]) inside a measure, the result is not a single value.
VALUES returns a table object (a one-column table of distinct values), and a table cannot be placed directly in a visual that expects a single scalar value.
That’s why you get an error when dragging the measure into a table visual.

A measure must always return one value, not a column.

If your goal is to display a list of the distinct channels inside one cell of the visual, wrap VALUES with CONCATENATEX, for example:

Channels =
CONCATENATEX( VALUES(Sales[Channel]), Sales[Channel], ", " )

Ritaf1983_0-1765506998717.png

 


This returns a text string, which can be shown in any visual.

If your intention is to create a physical column or a table containing the unique channels, then VALUES must be used in a calculated table, such as:

ChannelsTable =
VALUES(Sales[Channel])

Ritaf1983_1-1765507088239.png

Ritaf1983_2-1765507121735.png

 


This creates a proper table object that Power BI can display.

Yes — this is the correct technical reasoning:
• VALUES returns a table, not a scalar
• Measures cannot return tables
• CONCATENATEX converts the table into a usable single value
• For physical modeling, use a calculated table instead

The upfated pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
GeraldGEmerick
Memorable Member
Memorable Member

@frost789 Measures can only return single values (scalars) not tables. Instead, simply put your Sales[Channel] column into a Table visual.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.