Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello Power BI community,
I have following data set:
| Project | Location |
| Project1 | A |
| Project1 | A |
| Project1 | B |
| Project2 | B |
| Project2 | C |
I would like to count each different location once per project. So I want to create a new table with following informations for further analysis:
| Location | Frequency |
| A | 1 |
| B | 2 |
| C | 1 |
Many thanks for your help or ideas.
Solved! Go to Solution.
@Carliniiiii , You can use Summarize function for this and create a new table by going into modelling section
NewTable =
SUMMARIZE(
'YourTableName',
'YourTableName'[Location],
"Frequency", COUNTROWS(SUMMARIZE('YourTableName', 'YourTableName'[Project], 'YourTableName'[Location]))
)
Proud to be a Super User! |
|
@Carliniiiii , Create another table using
GroupedData =
SUMMARIZE(
YourTableName,
YourTableName[Location],
YourTableName[Response],
"Frequency", COUNT(YourTableName[Response])
)
Proud to be a Super User! |
|
@bhanu_gautam , I have another question in a similar format.
I have following table:
| Location | Quarter | Response |
| A | Q1 | Yes |
| A | Q2 | No |
| A | Q3 | No |
| A | Q4 | Yes |
| B | Q1 | No |
| B | Q2 | Yes |
| B | Q3 | Yes |
| B | Q4 | Yes |
And I would like it to be grouped by both location as well as yes/no answers. I have limited the example to one year only but it should work over multiple years.
| Locations | Response | Frequency |
| A | Yes | 2 |
| A | No | 2 |
| B | Yes | 3 |
| B | No | 1 |
Many thanks
@Carliniiiii , Create another table using
GroupedData =
SUMMARIZE(
YourTableName,
YourTableName[Location],
YourTableName[Response],
"Frequency", COUNT(YourTableName[Response])
)
Proud to be a Super User! |
|
@Carliniiiii , You can use Summarize function for this and create a new table by going into modelling section
NewTable =
SUMMARIZE(
'YourTableName',
'YourTableName'[Location],
"Frequency", COUNTROWS(SUMMARIZE('YourTableName', 'YourTableName'[Project], 'YourTableName'[Location]))
)
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |