cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hitty
New Member

Invalid ARGUMENT TYPE (Number). Expecting Text value instead while using a combo box

Ok I am trying to concat a combo box to a label. One of the object in my combo box is a number.

 

Text --> Concat(project_search.SelectedItems, Object) --> Returns Invalid argument type (Number). Expecting a text value instead

 

so I tried 

Text --> Concat(project_search.SelectedItems, Value(Object.Text)) --> Throws an error in the concat

Text --> Concat(project_search.SelectedItems, Object.Value) --> Throws an error in the concat

Any ideas how to convert this field? 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@hitty 

And what do you get with this formula:

   Concat(project_search.SelectedItems, Text(total))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

8 REPLIES 8
Pstork1
Dual Super User III
Dual Super User III

Use the following

 

Concat(project_search.SelectedItems, Text(Object.Value))

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
RandyHayes
Super User III
Super User III

@hitty 

What is the Items property of your combobox and what columns are in the records of the combobox?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

No luck on this, threw another error within the formula

The item property is the project_list and are you talking about the fields of the combo box? 

RandyHayes
Super User III
Super User III

@hitty 

Yes, the columns in the project_list table...what are they and which ones are you trying to concat together?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

The column is a number within a sharepoint list. The columns name is total where they input a number. 

 

Project_Search is the Combo Box and total is the column name

 

Concat(project_search.SelectedItems, total)

RandyHayes
Super User III
Super User III

@hitty 

And what do you get with this formula:

   Concat(project_search.SelectedItems, Text(total))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Would this be the same for a column that contains currency? 

 

Answered my own question. It does not work for currency, the column just shows up blank. Any idea on how to do the same thing for currency?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (10,927)