web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculation in Gallery
Power Apps
Answered

Calculation in Gallery

(0) ShareShare
ReportReport
Posted on by 285

Hi,

Below is the data structure of two lists (Heatmap and VDUList)

Sam70_1-1712834729851.png(Heatmap) and  Sam70_3-1712834980548.png(VDUList)

Values under Service Line are from VDUList. User will select unique Category values from a dropdown. Based on the selection, rating counts are to be listed. For Category-Network, if Rating falls between 1 to 5, then the count (2) should be under RED, if rating is between 6-7, then its count (2) should be under AMBER and if its 8-10 then the count (1) should be under GREEN. NA values are to be neglected.

 

Sam70_2-1712834832324.png

Account in Scope will be the sum of RED, AMBER and Green for a specific VDU. FS in my case.

Kindly help.

 

Regards

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    nickellis74 Profile Picture
    432 Moderator on at

    Hi @Sam70 this seems a complex way of doing it. The solution is to have a different labels under each column with a formula like

    If(And(CountRows(Filter(Heatmap,Rating <> "NA")>5,CountRows(Filter(Heatmap,Rating <> "NA")<8),CountRows(Filter(Heatmap,Rating <> "NA"))

    Accepting that your format may be mandated by the business, may I suggest a method that involves less calculating and thus will be quicker to execute?

    Have a single label with the value

    CountRows(Filter(Heatmap,Rating <> "NA")

    And then switch the background color attribute based on the Text value of the label.

  • Sam70 Profile Picture
    285 on at

    Hi @nickellis74 , 

    taking clue from the formula, a small change was made and got what was required.

    Thank You

    Regards

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard