Hello everyone. I have a gallery that shows an average rating for each manager. Basically, it's looking at a Dataverse table and averaging the ratings sent from each assigned employee. I have a code that is working, but I'm having an issue trying to add a code that ignores any ratings with a zero value. This is the code I have so far. Thanks!
RoundUp(Average(Filter(DATA_REPORTS,Manager=ThisItem.Value),Avg_Rating),2)
No worries! For further troubleshooting, would it be possible to explain the set-up a bit more in regards to my 2 questions (see previous comment)?
Thanks! 😊
I forgot to mention, this is averaging from a gallery that is filtered with the Distinct function. Sorry about that.
@TONYSTORM thank you for the info, this is indeed behaviour I would not expect from the given code.
Thanks for replying so quickly. No errors popped up, however, its showing an average of "1" for all managers.
Hi @TONYSTORM,
Could you give the following code a try:
RoundUp(
Average(
Filter(
DATA_REPORTS,
Manager = ThisItem.Value,
Avg_Rating <> 0
),
Avg_Rating
),
2
)
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
WarrenBelz
93
Most Valuable Professional
MS.Ragavendar
60
stampcoin
48