Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
After unsuccesful googling, I'll try to find an answer here:
I have following data set
I want to achieve a count on the activities per Case ID preferably in the query (M-code). So in more detail I want to have all distinct Case Id's and I want to count how many Activities happened for a certain case. I am not sure, but I think the aggregatetablecolumn might be useful in order to do this.
The result should look something like this:
Case ID: Number Of Activities:
1 10
2 6
3 1
and so on.
Can anyone help me with this?
Have a good one!
Thanks,
Bert
@Anonymous
In power query, right-click on the case id column, select GROUP BY, Choose CountRows
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |