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.
The data model being used is pasted above.
I am trying to create a table that contain unique pairs of Borough and incident_count from crime_report table.
I tried create a table of distinct borough values -
Solved! Go to Solution.
Hi @sharon_net ,
You can create a calculated table as below to get it:
Table =
SUMMARIZE (
'crime_report',
'crime_report'[LSOA Code],
"incident_count", SUM ( 'crime_report'[incident_count] )
)
In addition, you can create a Table visual with below Fields settings to get it directly...
Best Regards
Hi,
my dataset is in the form of a CSV-
here is a snippet
LSOA Code,LSOA Name,Borough,Major Category,Minor Category,incident_count
E01000008,Barking and Dagenham 016A,E09000002,Arson and Criminal Damage,Criminal Damage,10
E01000009,Barking and Dagenham 016A,E09000002,Burglary,Domestic Burglary,7
E01000009,Barking and Dagenham 016A,E09000002,Drug Offences,Drug Trafficking,5
I'm expecting a table that sums up the incident counts per borough, since there could be multiple records with the same borough
Result expected is
Borough | incident_count
E000008| 10
E000009|12
Hi @sharon_net ,
You can create a calculated table as below to get it:
Table =
SUMMARIZE (
'crime_report',
'crime_report'[LSOA Code],
"incident_count", SUM ( 'crime_report'[incident_count] )
)
In addition, you can create a Table visual with below Fields settings to get it directly...
Best Regards
Hi,
To a Table visual, drag Borough and write this measure
Total = sum(Data[incident_count])
Hope this helps.
Hi @sharon_net
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
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 |
---|---|
77 | |
76 | |
57 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |