cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Need calculating column like If the duplicates records in the column then Processed else new

If the record exists more than one time in the column then that record is processed or else new 

I need calculated column like type 

id type

2   Processed

2   Processed

4   New

5   New

6   Processed

6   Processed

6   Processed

7   New

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User V
Super User V

Re: Need calculating column like If the duplicates records in the column then Processed else new

Hi @Venkateswara_ra ,

 

Create a Calculated Column

 

Type1 =

var a = CALCULATE(COUNT('Table'[id]), ALLEXCEPT('Table','Table'[id]))

RETURN

IF(a=1,"New","Processed")
 
 
1.jpg
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

2 REPLIES 2
Highlighted
Super User V
Super User V

Re: Need calculating column like If the duplicates records in the column then Processed else new

Hi @Venkateswara_ra ,

 

Create a Calculated Column

 

Type1 =

var a = CALCULATE(COUNT('Table'[id]), ALLEXCEPT('Table','Table'[id]))

RETURN

IF(a=1,"New","Processed")
 
 
1.jpg
 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

View solution in original post

Highlighted

Re: Need calculating column like If the duplicates records in the column then Processed else new

Thanks Harsh Nathani

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Don't miss the Power BI Dev Camp this week!

August Community Highlights

Check out a full recap of the month!

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors