Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
simlee
Frequent Visitor

Count of values with more than 1 criteria

Hi all, 

 

I need help to count how many documents have more that one ID as per the below screenshot where the resutl show that only 2 documents have more than one ID.

ids.png

 

Thank you

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@simlee , Try like

countx(filter(Summarize(table,table[document],table[IDs],"_1", count(Table[document])),[_1] >=2),[document])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@simlee , Try like

countx(filter(Summarize(table,table[document],table[IDs],"_1", count(Table[document])),[_1] >=2),[document])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
jthomson
Solution Sage
Solution Sage

What happens if you try something like putting the document field into the rows of a matrix, then use a measure doing something like:

 

measure = if(countrows(IDs)=distinctcount(IDs),0,1)

collinq
Super User
Super User

hi @simlee ,

 

You just have to use Group By and count, like this:

 

OneOne

TwoTwo

 

ThreeThree

 

 

 

I would appreciate Kudos if my response was helpful. I would also appreciate it if you would Mark this As a Solution if it solved the problem. Thanks!

 




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!
Private message me for consulting or training needs.




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors