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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arutkowski
New Member

Device ID exists in multiple accounts

I have a single table that contains a 'Devices_UID_Value' colum (which is a Unique computer or phone device id). I also have a column which contains a 'file_source_name'. I want to return instances where the 'Devices_UID_Value' match more than one 'file_source_name'.

 

Similarly, I have a another table with an 'IP_Address' column, and with a 'User_ID" column.  I want to return instances where the 'IP_Address' is associated with multiple 'User_IDs'

 

Any suggestions?

2 REPLIES 2
Sahir_Maharaj
Super User
Super User

Hello @arutkowski,

 

To return instances where the 'Devices_UID_Value' match more than one 'file_source_name', you can use the following:

 

DeviceCount = COUNTROWS(
    FILTER(
        SUMMARIZE('Table', 'Table'[Devices_UID_Value], 'Table'[file_source_name]),
        CALCULATE(DISTINCTCOUNT('Table'[file_source_name])) > 1
    )
)

 

To return instances where the 'IP_Address' is associated with multiple 'User_IDs':

IPCount = COUNTROWS(
    FILTER(
        SUMMARIZE('Table', 'Table'[IP_Address], 'Table'[User_ID]),
        CALCULATE(DISTINCTCOUNT('Table'[User_ID])) > 1
    )
)

 

Let me know if you may require further guidance.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ About: https://sahirmaharaj.com/about.html
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Thank you for the offered solution. It does not appear to work.  I will paste screenshots so you can see.

 

The first photo shows what happens if I drop the measure onto a table with the two column names in question.

UID_fail_20230222.png

The second photo shows that the underlying data does indeed have matches.

UID_fail_20230222b.png

 

I also tried the IP address formula, but as it is the same formula, I also did not get any results, even though upon manual inspection, there are in fact matches.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.