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 / How to apply CountIf a...
Power Apps
Unanswered

How to apply CountIf and CountRows functions on child gallery items to count parens gallery items ?

(0) ShareShare
ReportReport
Posted on by 2

Hi,

I am unable to count rows of parents gallery  items while applying CountIf and CountRows formulas on child gallery item. Bothe has different SharePoint  list as data source. I also unable to filter Parent galley items  while applying filter formula on child gallery item.

Any solution for it ???

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @ManouverRR 
    Can you please share all data needed to replicate your issue?

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @ManouverRR ,

    Could you tell me

    1)the formula in your parent gallery's Items and child gallery's Items?

    2)what column do you want to count? count rule? that column data type?

    3)fields data type in your parent gallery?

    CountIf and CountRows functions  do not have limitation for parent gallery or child gallery.

    The key point is what formula that you use.

    So please show me the details, then I will give you more detailed advice.

     

     

    Best regards,

     

  • ManouverRR Profile Picture
    2 on at

    The formula I apply is -

    "Total 60 KVA UPS:" &" " &  CountIf(Gallery1_1.AllItems ,  Title5_7.Text ="60")

    All column data type is - single line text input.

    I am using two  share point list as date source . one is for master date(for reference) and other for data entry.

    I am displaying entered date in gallery as rows . columns include from both list.

    if column data belongs to master  list then count if not work if column data belongs to data entry  list the it work.

    for example in my formula  - if UPS  KVA rating data belongs to entered data list then formula work if UPS KVA rating data belongs to master list then formula is not work.

     

    Thanks

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @ManouverRR ,

    Could you tell me:
    1)the formula in the gallery's Items? 

    2)what control do you use to display data of master date? how do you set this control? formula?
    3)what does Gallery1_1  and Title5_7 represent? the child gallery or the parent gallery? Title5-7 is used to display  what?

    4)what is the counting rule in detailed?
    If you could describe with screen shoot, it will help me to understand.

    What's more, if "Gallery1_1" is the gallery to display data entry  list, then Gallery1_1.AllItems could only represents data related to data entry  list.

     

     

    Best 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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard