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

Caluculate base on dropdown list

I use this fomulate to calucate via drop down list and text input

If(
  IsBlank(ComboBox1.Selected.Option),
  Blank(),
  Value(ComboBox1.Selected.Value) * Value(TextInput1.Text)  
)

 

but it doesn't work.  It show error that the value argument.

 

My information in ComboBox1 base on Choices in Share point

5 REPLIES 5
Anonymous
Not applicable

Hi @mae_be9292,

 

Try with it please :

If(
  IsBlank(ComboBox1.SelectedText.Value),
  Blank(),
  Value(ComboBox1.SelectedText.Value) * Value(TextInput1.Text)  
)

 

Does it work for you ? 🙂

 

Best regards,

 

Louis

@mae_be9292 

 

I did a similar test on my side and the reason you are getting error on the Value function is because you have not selected correct attribute from the Combobox selected item.
 
As per your formula, you are using .option attribute to check but for multiplication Value attribute is used, please confirm the correct attribute name in your combobox. Considering that option is the correct attribute, Can you try to update your expression as:
 
If(
  IsBlank(ComboBox1.Selected),
  Blank(),
  Value(ComboBox1.Selected.Option) * Value(TextInput1.Text)
)
 
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!
v-yutliu-msft
Community Support
Community Support

Hi @mae_be9292 ,

Try this formula:

If(
  IsBlank(ComboBox1.Selected.Option),
  Blank(),
  Value(ComboBox1.Selected.Option) * Value(TextInput1.Text)  
)

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It try all solution and then it error appear

 

"Name isn't Valid.  This identifier isn't recognized."

Hi @mae_be9292 ,

Could you show me more details about your problem, such as screenshoots, formulas, etc?

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,450)