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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Countrows Choice Column
Power Apps
Unanswered

Countrows Choice Column

(0) ShareShare
ReportReport
Posted on by 52

Hi,

 

I have made a app where you can see every task available. And now i want to filter these task. So i have made a disctinct collection on every column i want to filter (and added a colum so i can see wich one's are selected) en put these collections in a gallery. So i can create the folowing picture

Ward_1984_0-1682677417264.png

So far  everything works and i can select the column and the filter does it job.

 

But the problem lies in the Status column (sharepoint Choice column). On the picture you can see that there is the amount of records visible after every choice. But you can see it works on every filter except Status. 

 

The code below generate the text. The other Filters are generated the same way.

ThisItem.Value & " (" & CountRows(Filter(galWerkbonnen.AllItems;Ploeg = ThisItem.Value)) & ")"

 

Thanks at advance!

Kind regards,

Ward

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Ward_1984 ,
    Try using below formula - 

    ThisItem.Value & " (" & CountRows(Filter(galWerkbonnen.AllItems;Ploeg.Value = ThisItem.Value)) & ")"
  • Ward_1984 Profile Picture
    52 on at

    hi @NandiniBhagya20 thanks for the reply.

    I apparently copy'd the wrong gallery my formula was the same:

    ThisItem.Value & " (" & CountRows(Filter(galWerkbonnen.AllItems;Status.Value = ThisItem.Value)) & ")"

    I also try'd hardcoding it like the following:

    ThisItem.Value & " (" & CountRows(Filter(galWerkbonnen.AllItems;Status.Value = "In Progress")) & ")"

    But nothing works like it should be!

     

     

  • Ward_1984 Profile Picture
    52 on at

    But if i use the formula on my sharepointlist directly it works fine

    CountRows(Filter(sys_WBI;Status.Value = "In Progress"))

    But from my gallery this doesn't work even if i have all my data

    Ward_1984_0-1682755758582.png

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Ward_1984 ,
    Can you please share formula written in Items property of Gallery - "galWerkbonnen".

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard