How To Set Default Rating To Zero Or Empty In PowerApps Rating Control

Rating control is a very nice UI control to have in your PowerApps forms. You can easily change the default textbox control of Number type of fields to Rating or Slider in PowerApps. By default, it comes with maximum 5-star control. There is also a provision given to set the minimum and maximum stars allowed to be selected by the end user. In this short blog, we will see how to set the default rating to 0 or empty.

Default value set to rating is 3 stars. When we see a rating control on a new form, it looks weird to see 3 stars selected already. Instead, the end user would like to see no stars selected. So how to achieve this?

Open your PowerApps native app in Edit mode or customize the list forms if you are using that mode of customization.

Selecte required screen - Select DataCard >> Advanced option >> Unlock to change the properties - Select the rating control >> Default property - Set it to Coalesce (Parent.Default, 0).
 
Coalesce function validates values in the parameters passed to it. It returns non-blank values only. So, in the above line of code as Parent.Default is blank (as its a new form), it returns 0.
 
To learn more about Coalesce, please refer to PowerApps documentation.
 
How To Set Default Rating To Zero Or Empty In PowerApps Rating Control
 
I hope this helps.