Need help with Cumulative Count in PowerQuery

Joined
Jun 26, 2017
Messages
25
Reaction score
0
Points
0
Excel Version(s)
2016
Hi Folks,

I need some help to write a formula for cumulative count within PowerQuery, is just like Countif in excel. I can't do it in Excel as I've more than 500k of data

  • Screen Shot 2017-07-02 at 2.17.51 PM.png
This is the sample data

Screen Shot 2017-07-03 at 8.57.44 PM.png
I need to do a cumulative count, using "Product | Category" as the criteria. The above is what i wanna achieve with " Column Header"

Appreciate any help :) I've attached the original file for reference
 

Attachments

  • Workbook1.xlsx
    53.8 KB · Views: 15
Is the column concatenation mandatory?

You can group by all four columns to return a count.
 

Attachments

  • Workbook1.xlsx
    22.9 KB · Views: 10
Thanks Comfy,
I can't Group all 4 as I need to Pivot "ProductID | Description".
And i tried it earlier in the morning but it returned the sum count(e.g. 2) instead of a running order(e.g. 1,2,3). I need the running order as that will be the column header for "ProductID | Description"
Screen Shot 2017-07-02 at 2.18.02 PM.pngScreen Shot 2017-07-02 at 2.18.02 PM.png
This is the end result i wanna achieve
 
Oops my mistake, forgot to add an additional step.

I've attached the correct one.
 

Attachments

  • Workbook1.xlsx
    21.1 KB · Views: 22
All you will need to do is add a step to change the column Types (ID will need to be whole number)

Then you'll be able to pivot.
 
Solved

Yes, this work like a charm, i did some slight changes to fit my dataset :)
 
Last edited:
Back
Top