Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi Experts
I am trying to count the distinct number of values based on two other columns - Country and Explaination - but the distinct count value is wrong.. see measure and sample date
Measure
case_id | created | Country | Explanation |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Unreasonable compensation |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Unreasonable compensation |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Unreasonable compensation |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Unreasonable compensation |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Needs further review |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Needs further review |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Needs further review |
NONAC-106-335649083 | 17-Nov-23 | SWEDEN | Needs further review |
AC-019-881334162 | 17-Nov-23 | SWEDEN | No risk identified |
AC-019-881334162 | 17-Nov-23 | SWEDEN | No risk identified |
AC-012-127532797 | 17-Nov-23 | SWEDEN | No risk identified |
AC-012-127532797 | 17-Nov-23 | SWEDEN | No risk identified |
AC-416-856484621 | 17-Nov-23 | SWEDEN | No risk identified |
AC-416-856484621 | 17-Nov-23 | SWEDEN | No risk identified |
Solved! Go to Solution.
Also tried
Why do you expect the result to be 5? There are only 4 unique values in the Case_ID column. Are you double-counting NONAC-106-335649083 because it has 2 Explanations?
Hi Helper 1 there are indeed 4 based on case id when you take into consideration explantation then one id is repeated for repeated Unreasonable compensation and Needs further review then we have 5
kindly try for yourslef with the sample data please.
Hi Ismal - not getting the expect result its just counting the number of rows.
Please try the below measure!
Measure = COUNTROWS(SUMMARIZE('Table','Table'[case_id],'Table'[Country],'Table'[Explanation]))
Regards
Ismail
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |