Re: Automatically Update value of a dropdown if label value met
@jaina
The Update formula you have will not work as you are trying to "set" a control directly in the true part of your If statement and return the selected value in the second part.
Your error is that your underlying column is most likely not a boolean column and a text column - as that would not exist.
So, to be clear, the first part of your If statement determine is the value is less than 30. If that is true, then you do a comparison of DataCardValue35.Selected.Value to "NO" - this will return a true or a false - it does NOT set the dropdown. In the false part of the formula, you are returning the value selected in the dropdown, which will be (based on the first part) a Text value. This will make no sense to PowerApps and the Update property.
If you are trying to change the value in the "Dropdown field" as you call it, then your formula needs to be on the Default property of the Dropdown itself.
The formula would be : If(DateDiff(DateValue(DataCardValue37.Text), Today()) <= 30, "NO", "YES")
Now this is assumptive because I am not sure what your dropdown items are.
So, if this doesn't take you where you need, then please respond with the following:
1) What field/datacard is the Update property you originally showed?
2) What data type is that field?
3) What is the Items property of your Dropdown?
4) IS it a Dropdown or a Combobox?
I hope this is helpful for you.