Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Friends,
I'm working on Power BI report and I have a table which contains list of Organisations and the roles within each of the organisation as below. I would like to count the "Total_Role" under each "ID". How can I achieve this, any help would be greatly appriciated. I'm quite new in dex.
Organistation | ID | Total_Role |
Ab | 1223 | 2 |
Ab | 1223 | 2 |
Ab | 1223 | 2 |
Bc | 1332 | 1 |
Bc | 1332 | 1 |
I'm expecting the measure should count only 1 role against each ID. So the total should be 3 not 8
Result | TotalRole |
Ab | 2 |
Bc | 1 |
Solved! Go to Solution.
@biswad add ID to measure
= SUMX( SUMMARIZE('table','table'[Organistation],'table'[ID],'table'[Total_Role]),[Total_Role])
Hi @biswad ,
The Simplest way of doing that is, use SUMMARISE function
TotalRole =
SUMX(
SUMMARIZE('Table', 'Table'[Org], 'Table'[ID]),
1
)
Hi @biswad try it
= SUMX( SUMMARIZE('table','table'[Organistation],'table'[Total_Role]),[Total_Role])
Hi, thank you for your solution. But I'm looking to get the sum of the roles based on the ID , and when I use the query you have shared over the ID column it doesn't quite give me the result I was looking at.
@biswad add ID to measure
= SUMX( SUMMARIZE('table','table'[Organistation],'table'[ID],'table'[Total_Role]),[Total_Role])
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |