Forum

Does Powerquery Has...
 
Notifications
Clear all

Does Powerquery Has Countif Formula, to Count the Occurence of Groups In a Filtered Table

4 Posts
3 Users
0 Reactions
424 Views
(@prosperchild)
Posts: 35
Trusted Member
Topic starter
 

We use  COUNTIF, one of the statistical functions, in excel to count the number of cells that meet a criterion.

However, in powerquery , i cant see such formula.

How do we apply COUNTIF, in powerquery.

I have  a sample data: Please see the attached file below:

The challenge is at the lefthand corner, while the expected output is place at the right-hand corner.

Thank you.

 
Posted : 17/09/2022 3:56 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

No, but you can easily replicate it by group/count and then merge the Source with the Grouped table. See attached.

 
Posted : 17/09/2022 4:38 am
(@jstewart)
Posts: 216
Estimable Member
 

If you don't want to merge, just group all rows and List.Count then expand. See attached. Either way your golden. 🙂

 
Posted : 17/09/2022 10:25 am
(@prosperchild)
Posts: 35
Trusted Member
Topic starter
 

@Jessica Stewart n Rink Van..

Thank you , both methods work fine. I Appreciate.

 
Posted : 17/09/2022 10:40 am
Share: