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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors