Forum Discussion

AndreasMEG's avatar
AndreasMEG
Frequent Visitor
2 years ago
Solved

Countifs

I need a power query custom column formula like the one shown in excel   Can somebody help? :=)   Its should count if its the same mRID and month        
  • dufoq3's avatar
    dufoq3
    2 years ago
    1. Prepare your table to this format:

    2. Name your Query i.e. MyData (without spaces and special characters)

    3. Create blank query, open advanced editor, select whole code and replace it with the code I provided above.

    4. Close Advanced Editor

    5. Select Source Step from right panel Query Settings

    6. Delete whole code of Source step (as you can see selected in the picture in Note below in my  signature) and write there = MyData (which is your table reference)