Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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 Number | A | B | C | Total |
| 1234 | 1 | 1 | 2 | |
| 1235 | 3 | 3 | ||
| 1236 | 1 | 1 | ||
| 1237 | 1 | 1 | ||
| 1238 | 3 | 2 | 5 | |
| 1239 | 1 | 1 | ||
| 1240 | 1 | 1 | ||
| 1241 | 1 | 1 |
Desired Result
| Serial Number | Result |
| 1234 | 2 |
| 1238 | 5 |
Can somebody please help with this.
Solved! Go to Solution.
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.
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.
Yes this worked - thanks for your help with it!!
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
Hi @hemann ,
Try the following code:
Count Over 2 = if(COUNT('Table'[A]) + COUNT('Table'[B]) + COUNT('Table'[C]) > 1, SUM('Table'[Total] ))
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.