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
EmilijaN
Helper I
Helper I

How to keep one from two same ids with following rule

Hello,

 

I have one problem. 

I have one table which looks like this:

EmilijaN_0-1631035419801.png

 

I want to put some colunm(after to use like filter) when I find the same id with two different device_names, to choce Samsara. 

I have no blank fields for device_name.

Like in the picture there is id(441233) with Samsara nad Skybitz device_name, I want to deactivate rows where is Skytbits and only to use Samsara(has priority).

 

Any idea?

 

Thank youu so much!

 

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @EmilijaN ,

 

what is the business rule that determines that Samsara has priority over Skytbits?

 

In this article I describe how I use Power Query to create an index per group, the id: https://www.minceddata.info/2021/06/02/using-power-query-for-data-sampling/

 

Maybe you can adapt this approach and group by the id column and sort by the device name column, than you can filter for all the rows where the index column equals one.

 

Hopefully, this provides some ideas on how to tackle your challenge.

 

Regards,

Tom



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

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

1 REPLY 1
TomMartens
Super User
Super User

Hey @EmilijaN ,

 

what is the business rule that determines that Samsara has priority over Skytbits?

 

In this article I describe how I use Power Query to create an index per group, the id: https://www.minceddata.info/2021/06/02/using-power-query-for-data-sampling/

 

Maybe you can adapt this approach and group by the id column and sort by the device name column, than you can filter for all the rows where the index column equals one.

 

Hopefully, this provides some ideas on how to tackle your challenge.

 

Regards,

Tom



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

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.