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, hoping someone can help, I think it is probably pretty simple, but with my lack of knowledge, I am just banging my head against a brick wall!
I have a table, one column is an assessment ID, there are multiple rows with the same assessment ID. I have a second column called NCs, there is either a 1 or 0 in that column. I want to create a measure to count the number of rows with 1 in for distinct assessment IDs.
I have something like this, but it's not working!
Solved! Go to Solution.
Hi, @Jsummers
Try below
Audits with NCs = CALCULATE(DISTINCTCOUNT('SQL Ad Hoc'[AssessmentID]),'SQL Ad Hoc'[NCs?]=1))
Can you clarify the desired result please? I don't think this is clear "I want to create a measure to count the number of rows with 1 in for distinct assessment IDs."
Do you want a distinct count of AssessmentID (with the table filtered for NC = 1)
or
do you want a count of NC = 1 rows for each AssessmentID?
or something else?
--
If you provide sample data and show the desired result you will get a better answer.
This is the desired outcome
Hi, @Jsummers
Try below
Audits with NCs = CALCULATE(DISTINCTCOUNT('SQL Ad Hoc'[AssessmentID]),'SQL Ad Hoc'[NCs?]=1))
@Dangar332 this appears to have worked, I will double check the results & then accept as the solution, many thanks
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |