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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Raj12
Helper III
Helper III

Create output table with removing duplicate value of an ID column based on 2nd column priority

Table has ID column  and Final Pause (calculated Column) where same ID can have multiple Final Pause data.

In output ,I need only unique ID's with Final Pause value with highest priroity i.e.

1. Pause

2. No Pause

3. Unmatched

So if ID has Pause, No PAuse & Unmatched , output should have Pause only for that ID as it has highest priority

but ID has No Pause & Unmatched then o/p should have No Pause against ID as its highest among (No Pause & Unmatched)

Input table:

 

UIDFinal Pause
W0234821-21/07/2021No Pause
W0234821-21/07/2021Pause
0092509-14/07/2021Unmatched
0092509-14/07/2021Pause
0092509-14/07/2021No Pause
2192509-14/07/2021Unmatched
2192509-14/07/2021No Pause
2192511-14/07/2021Unmatched

 

Output Table:

UIDFinal Pause
W0234821-21/07/2021Pause
0092509-14/07/2021Pause
2192509-14/07/2021No Pause
2192511-14/07/2021Unmatched
5 REPLIES 5
Anonymous
Not applicable

Hi @Raj12 ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

vrongtiepmsft_0-1709522741851.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

audreygerred
Super User
Super User

Hi! In Power Query, assign a value to your priority, then sort by the priority and remove duplicates on the UID.





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

Proud to be a Super User!





Hi,
Column shown above is a measure created in Power Bi and hence can't work on it in Power Query.

 

Thanks

I'm sorry, I thought you said UID and Final Pause were from your input table/source. My suggestion was that you then assign the priority numbers to the values in Final Pause in Power Query, then sort those in ascending order, then remove dupliates on your UID.





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

Proud to be a Super User!





Final Pause is a measure calculated based on differnet other tables and cant be defined in Power Query.
Can we do it in Power Bi itself ?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.