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 Apps
Answered

CountRows

(0) ShareShare
ReportReport
Posted on by 75

Hi

 

I want to CountRows with a distinct filter over multiple sharepointlist. Is this possible.

 

Mariette

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Mariette,

    Could you please post your distinct filter formula?

    Generally, you can achieve this by using the CountRows() directly.

    CountRows( YourDistinctFilterFormula)

    Please check if the above formula could help you.

    Regards,

    Qi

  • Mariette Profile Picture
    75 on at

    Hi

     

    My formula is countrows(distinct(sharepointlist;clientnummer))

     

    But I would like to add multiple sharepointlist.

     

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Mariette,

    If I understand you correctly, do you want to count how many rows with multiple distinct SP list filters?

    Please try the following:

    Sum(CountRows(Distinct(List1,Column1)),CountRows(List2,Column2),CountRows(List3,Column3),...)

    You could add SP lists as many as you want within the Sum().

    Hope it could help.

    Regards,

    Qi

  • Mariette Profile Picture
    75 on at

    Hi,

     

    I have different Sharepointlists and different Galleries. I want to count all the rows in all the sharepointlists. But it is possible that the same clientnummer is on sharepointlist 1  and sharepointlist 2. but is has to count the clientnummer 1 time.

     

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Mariette,

    Do you mean that there are duplicated column in different SP lists?

    I do not know how many duplicated columns in all, however, you should handle the duplicated column from different SP lists by creating a collection.

    You could combine all the duplicated columns in a same collection and distinct the target column, and then put the count rows number into the Sum() function.

    For example, create a collection that combine all the SP lists containing the same column like clientnumber as below:

    Collect(ComCol,{Value:Genre.Genre},{Value:MeType.Genre})

    And then do the counting by setting the Label Text property as below:

    CountRows(Distinct(Ungroup(ComCol,"Value"),Genre))

    Finally you could put the above CountRows() formula into the Sum() function.

    What's more, please try to give all the detailed information at the very beginning so that I could help you get there ASAP.

    Regards,

    Qi

     

  • Verified answer
    Mariette Profile Picture
    75 on at

    Thank you!

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Mariette,

    Could you please mark my answer if the formula I provided works on you?

    This could help other users find the solution directly and easily.

    Thanks for cooperation.

    Regards,

    Qi

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 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard