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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Raj12
Helper II
Helper II

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
v-rongtiep-msft
Community Support
Community Support

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.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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