The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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