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
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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
Super User

@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

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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