Forum Discussion

JDB79's avatar
JDB79
Copper Contributor
Jul 10, 2021
Solved

Power Query: COUNTIFS

Hello,

I am struggling to achieve below CountIfs-Formula in PowerQuery. 

Any suggestions would be highly welcome!

Thank you

JDB79

 

 

5 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    JDB79 

    Steps could be

    - Group table by Number without aggregation (All Rows)

    - add custom column to filter each of tables on "B"

    - add another custom column to count number of rows in each such table

    (above 3 steps could be combined in one in formula bar)

    - in resulting table

    keep only these columns

    expand Count column and land result into the grid

    Please check in attached file.

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    JDB79 

    I'm certainly not the most suitable to submit a suggestion to you, but I'll give myself a try :).

    Here is a small example .

     

    would be happy to know if I could help.

     

    Nikolino

    I know I don't know anything (Socrates)

    * Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.

     

     

    • JDB79's avatar
      JDB79
      Copper Contributor
      Hallo,
      Vielen Dank für die Mühe. Problem ist für mich gelöst.
      🙂
      P.S. Bin sogar auf eine weitere Lösung gestoßen:
      https://stackoverflow.com/questions/53305097/countifs-equivalent-in-power-query-m-counts-per-row-within-self

      Problem ist für mich gelöst.

Resources