Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Remove old duplicates

$
0
0

We have a table in Excel with CRM data. Each CRM opportunity appears multiple times. Meaning if an opportunity moves through the different CRM stages for each stage a row will be created. The CRM stages are numbered from 01, 02, 03 04 etc. We would like to create a report with just the most current stage (=highest number). What we did was the following in Power BI Desktop:

 

1) Sort the column 'Sales Stage' in descending order so that the highest (is latest) sales stage would be on top

2) Then selected the column Opportunity ID and removed the duplicates

 

Unfortunately the remaining row for each opportunity was the oldest one (sales stage 01)

 

We tried to do the same as above, but this time first sorting the Sales Stages' in ascending order.

 

But again we were left with Sales Stage 01

 

How can we remove duplicate opportunities (based on the field Opportunity ID) while retaining the latest (=highest) sales stage?


Viewing all articles
Browse latest Browse all 213819

Trending Articles