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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.