Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
12 | |
11 | |
8 | |
8 |
User | Count |
---|---|
24 | |
13 | |
12 | |
11 | |
10 |