Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Folks,
I'm looking to do cumulative count within PowerQuery so i can use that particular column and Pivot it as a header.
Below in the sample Data before any queries.
I managed to merge Product & Category, Product ID & Product Description with " | " as the delimiter.
Then I created an extra column "Column Header" as the Header to Pivot as the Column Header for " Product ID & Product Description".
In excel the formula will be like =COUNTIF(M$4:M4,M4) to get a cumulative count for "Product & Category"
Column M is "Product | Category "
I'm hoping someone can help me out with the formula cumulative count within PowerQuery, using "Product | Category" as the criteria.
Solved! Go to Solution.
This is the same like a nested index. Please check if this video helps: https://www.youtube.com/watch?v=-3KFZaYImEY
You would group on column "Product | Category" and the added Index would be your cumulative count.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
This is the same like a nested index. Please check if this video helps: https://www.youtube.com/watch?v=-3KFZaYImEY
You would group on column "Product | Category" and the added Index would be your cumulative count.
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Yes, This work like a charm 🙂 I guess i didnt understand the grouping function as i only Group based on 1 of column 🙂
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |