• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • SALE 20% Off All Courses
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member
  • Login

Does Powerquery Has Countif Formula, to Count the Occurence of Groups In a Filtered Table|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Does Powerquery Has Countif Formula, to Count the Occurence of Groups In a Filtered Table|Power Query|Excel Forum|My Online Training Hub
                    BLACK FRIDAY SALE 20% OFF ALL COURSES
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryDoes Powerquery Has Countif Formula…
sp_PrintTopic sp_TopicIcon
Does Powerquery Has Countif Formula, to Count the Occurence of Groups In a Filtered Table
Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 28
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
1
September 16, 2022 - 5:56 pm
sp_Permalink sp_Print sp_EditHistory

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.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators
Level 1
Forum Posts: 692
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
September 16, 2022 - 6:38 pm
sp_Permalink sp_Print sp_EditHistory

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

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 219
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
3
September 17, 2022 - 12:25 am
sp_Permalink sp_Print

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

sp_AnswersTopicAnswer
Answers Post
Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 28
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
4
September 17, 2022 - 12:40 am
sp_Permalink sp_Print sp_EditHistory

@Jessica Stewart n Rink Van..

Thank you , both methods work fine. I Appreciate.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Steven Alker, Sherry Fox, Jill Niemeier, Pam Baillie, Stacey Wells, Sheryl Gill, Ben Penney, Phil Collins, Todd Heckman
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Catalin Bombea: 1864
SunnyKow: 1432
Anders Sehlstedt: 886
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 241
Hans Hallebeek: 227
Jessica Stewart: 219
A.Maurizio: 213
Newest Members:
Anya Ledwith
Mark Melvin
Stuart McInnes
Naji Moukhachen
Robert Mason
Debora Cohen
Kris Whitaker
Rajesh Jawajala
Todd Heckman
Sarah Dennis
Forum Stats:
Groups: 3
Forums: 24
Topics: 6641
Posts: 29138

 

Member Stats:
Guest Posters: 49
Members: 33095
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate
  • Sponsor Our Newsletter

Support

  • Contact
  • Forum
  • Helpdesk – For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.