cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vishalgoyal2472
Helper I
Helper I

SharePoint List Multi-choice column in Datatable showing error

1- I have created a multichoice column in SharePoint Online List and other columns also

2- created a Power app and inserted a data atble inside it to show data

3- created connection and added some column with multi choice column and its showing below error and after clicking on details it showing below

 

2.png

Untitled.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @vishalgoyal2472 

 

This is happening because Data Table expects its values to be text. As an alternate to this, you can directly refer to the column by placing the expression on Text property of the column as:
 
Concat(ThisItem.'Issue/Objective Type',Value,",")
 
Here, Value is the column that holds text value for choice type fields.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
RezaDorrani
Dual Super User II
Dual Super User II

@vishalgoyal2472 

 

Data tables dont work with complex types

you can create a collection and add a new column to store that value and use the collection in data table

 

example:

ClearCollect(colData,AddColumns(datasource,"CountryText",Concat(Country,Value&",")))

 

In my case Country is the multi select column

 

Regards,

Reza Dorrani

 

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

 

yashag2255
Dual Super User II
Dual Super User II

Hi @vishalgoyal2472 

 

This is happening because Data Table expects its values to be text. As an alternate to this, you can directly refer to the column by placing the expression on Text property of the column as:
 
Concat(ThisItem.'Issue/Objective Type',Value,",")
 
Here, Value is the column that holds text value for choice type fields.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Thank You for your response,

 

We tried with your approch by creating new collection and adding columns insude it.

 

ClearCollect(IssueObject,AddColumns('Issue Objection Assignments',"Edit","Edit","IssueObjectType",Concat('Issue/Objection Type',";")))

 

 

But , Now the datatable is showing only ;;; and not val1;val2;val3

 

Any thought what we did wrong?

 

 

Thanks

Sith

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,037)