March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
How can I count the Distinct number of cases where the count of "Yes"is > 1
Case no | Yes Column |
12 | |
12 | |
12 | Yes |
13 | |
13 | Yes |
13 | Yes |
Count of Cases = CALCULATE(DISTINCTCOUNT('Table'[Case no]),FILTER('Table','Table'[Yes Col] = "Yes"))
I can calculate the number of cases but i don't want the cases with only one "Yes". So from the above table it should skip case no 12 and should give answer as 1 i.e caseno 13
Thanks!!
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
expected result measure: =
COUNTROWS (
FILTER (
DISTINCT ( 'Table'[Case no] ),
CALCULATE ( COUNTROWS ( FILTER ( 'Table', 'Table'[Yes Column] = "Yes" ) ) ) > 1
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hello,
Good monrning,
i think above two solutions in one of the solutions useful for you.
Thankyou for replying.
Hi,
Please check the below picture and the attached pbix file.
expected result measure: =
COUNTROWS (
FILTER (
DISTINCT ( 'Table'[Case no] ),
CALCULATE ( COUNTROWS ( FILTER ( 'Table', 'Table'[Yes Column] = "Yes" ) ) ) > 1
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Thankyou. This measure works the best.
Regards,
Shubham
@Anonymous , have these two measures
measure 1= calculate(count('Table'[case no]),FILTER('Table','Table'[Yes Col] = "Yes"))
Measure
count GT 1 = countx(values('Table'[case no]), if([measure 1]>1, [case no], blank()))
Thankyou for replying.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |