This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I am a newbie in Power BI. How would i create a measure to do count on group by?
The equivalent SQL would be:
select department, count(department) from customers where location = 'US' group by deparment
department count(department)
sales 25
HR 28
finance 30
:
:
Thanks.
Solved! Go to Solution.
I figured it out without creating the measure formula. In Pie chart I could get both the data points and it automatically shows the total by grouping. Thanks!
I figured it out without creating the measure formula. In Pie chart I could get both the data points and it automatically shows the total by grouping. Thanks!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 29 | |
| 23 | |
| 22 |