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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
hemann
Helper I
Helper I

DAX Count on condition duplicated

Hi,

I am trying to return serial number using DAX measure based on following condition, it appears in x2 or more sources. 

Sample data

 Source 
Serial NumberABCTotal
12341 12
1235 3 3
12361  1
1237 1 1
123832 5
12391  1
1240  11
12411  1

 

Desired Result

Serial NumberResult
12342
12385

 

Can somebody please help with this. 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Values = SUM(Data[Value])
Count = COUNTROWS(Data)
Measure = SUMX(FILTER(VALUES(Data[Source]),CALCULATE([Count],all(Data[Source]))>=2),[Values])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Values = SUM(Data[Value])
Count = COUNTROWS(Data)
Measure = SUMX(FILTER(VALUES(Data[Source]),CALCULATE([Count],all(Data[Source]))>=2),[Values])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Yes this worked - thanks for your help with it!!

Anonymous
Not applicable

Hi @hemann,

Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

MFelix
Super User
Super User

Hi @hemann ,

 

Try the following code:

Count Over 2 = if(COUNT('Table'[A]) + COUNT('Table'[B]) + COUNT('Table'[C]) > 1, SUM('Table'[Total] ))

MFelix_0-1666825123682.png

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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 Solution Authors