cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CarlosN
Helper IV
Helper IV

Countrows

I have a SharePoint database with more than 10K records, I want to count the records by month, year, user and status, can someone help me, this is the code I am using.

CountRows(Filter('Solicitudes Expres';(
StartsWith(UsuarioEst;"Carlos") ||
StartsWith(Text(Year(FechaEstructural));EtAno.Text) ||
StartsWith(Text(Month(FechaEstructural));EtMes.Text)
)&&(
StartsWith(Estatus;"Realizada"))))
1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @CarlosN ,

Firstly CountRows is not Delegable, so the most you will be able to count is 2,000 (with your limit set to this). Also Date queries are not Delegable. If your "Carlos" and "Realizada" filters produce less than 2,000 items, you can do this

With(
   {
      wList:
      Filter(
         'Solicitudes Expres';
         StartsWith(Estatus;"Realizada") &&
         StartsWith(UsuarioEst;"Carlos")
      )
   };
   CountRows(
      Filter(      
         wList,
         StartsWith(
            Text(Year(FechaEstructural));
            EtAno.Text
         ) ||
         StartsWith(
            Text(Month(FechaEstructural));
            EtMes.Text
         )
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

1 REPLY 1
WarrenBelz
Super User III
Super User III

Hi @CarlosN ,

Firstly CountRows is not Delegable, so the most you will be able to count is 2,000 (with your limit set to this). Also Date queries are not Delegable. If your "Carlos" and "Realizada" filters produce less than 2,000 items, you can do this

With(
   {
      wList:
      Filter(
         'Solicitudes Expres';
         StartsWith(Estatus;"Realizada") &&
         StartsWith(UsuarioEst;"Carlos")
      )
   };
   CountRows(
      Filter(      
         wList,
         StartsWith(
            Text(Year(FechaEstructural));
            EtAno.Text
         ) ||
         StartsWith(
            Text(Month(FechaEstructural));
            EtMes.Text
         )
      )
   )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (71,106)