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 / Filter problems in ris...
Power Apps
Answered

Filter problems in risk management

(0) ShareShare
ReportReport
Posted on by 58

Hello everyone,
I'm currently building a risk matrix and trying to filter it based on probability of occurrence and impact. My gallery looks like this:

Masakichi123_0-1698224001208.png

In the Items property I have the following:

 

Distinct(Risikobewertung;Projekt)

 

I determine the numbers in the respective text property as follows:

CountRows(Filter(Risikobewertung;Eintrittswahrscheinlichkeit * Schadensauswirkung <=4)) (for example)

 

Now I want the gallery to just show the number of each risk category, sorted by project. For example, project A has 1 green, 1 yellow and 1 red risk. The other projects have no green risk, etc. It currently shows the total number of risk categories found in all columns.

 

How can I filter this please?

Thanks in advance and greetings!

 

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    jkic Profile Picture
    150 on at

    I'm not sure I fully understand, but I'd use a Collection to work out the values, and then use that as the .Items, something like  ClearCollect(colRisk,AddColumns (GroupBy (Risikobewertung, "Projekt", "Grouped"), "CountRiskCategory", CountRows (Distinct (Grouped, "RiskCategory"))))

    This may not be quite right, but the key is to use GroupBy to aggregate.  Using a Collection can also make it easier to diagnose the problem.  Then set your Gallery.Items to colRisk.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard