cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hitty
Regular Visitor

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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
Dual Super User

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

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 Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,375)