Announcements
If your score is coming from another data source, you can use a LookUp function to bring that value into your Gallery and then apply the condition for color based on it.
Select the that Rectangle or if you want to apply gallery in Gallery then select the Template Fill property in Gallery.
Example
With( { scoreValue: LookUp(OtherDataSource, ID = ThisItem.ID, Score) }, If( scoreValue >= 45, Color.Green, scoreValue >= 35, Color.Orange, scoreValue >= 0, Color.Red, Color.Gray ) ) //OtherDataSource - Replace with your other data source //ID = ThisItem.ID - Replace this condition based on your configuration.
Note: Please make sure replace the above lookup condition as per your configuration. Also, please replace the color condition based on your score range.
📩 Need more help? Just mention @Kalathiya and I’ll be happy to assist.
✔️ If this answer helped you, please tick “Does this answer your question?” so it can be marked as the Verified Answer.
💛 A Like always motivates me to keep contributing!
LookUp( ScoreDataSource, QuestionID = ThisItem.QuestionID ).Score
If( LookUp( ScoreDataSource, QuestionID = ThisItem.QuestionID ).Score >= 8, Color.Green, Color.Red )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290