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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
gssarathkumar
Helper I
Helper I

Check for Duplicate and Sum the values

Hello, I have a below table.

 

Date

ID

Status

08-05-2024

1234

10

08-05-2024

1234

20

08-05-2024

4321

25

07-05-2024

123456

100

 

I need to create the below logic:

Check if the ID is same, if so sum the status of the job ids.

 

I created the Duplicate column using the below DAX, and now I stuck on creating the New Column.

Duplicate =
VAR CurrentText=Data[ID]
VAR _count = COUNTROWS(
FILTER(
'Data',
Data[ID]=CurrentText
)
)
RETURN
IF(_count>=2, true, false)

 

My expected output is as below:

 

Date

ID

Status

Duplicate

New Column

08-05-2024

1234

Committed

TRUE

30

07-05-2024

1234

Running

TRUE

30

08-05-2024

4321

Failed

FALSE

25

07-05-2024

123456

Killed

FALSE

100

 

Kindly help me on this solution

@amitchandak , @Greg_Deckler @lbendlin , @DesktopOwl @Goodlytics4U @help Ahmedx @Ahmedx @lbendlin @v-huijie-msft 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@gssarathkumar 

you can create columns

 

Column =
VAR _count=CALCULATE(count('Table'[ID]),ALLEXCEPT('Table','Table'[ID]))
return if (_count>=2,TRUE(),FALSE())
 
Column 2 = CALCULATE(sum('Table'[Status]),ALLEXCEPT('Table','Table'[ID]))
 
11.PNG

 





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

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@gssarathkumar 

you can create columns

 

Column =
VAR _count=CALCULATE(count('Table'[ID]),ALLEXCEPT('Table','Table'[ID]))
return if (_count>=2,TRUE(),FALSE())
 
Column 2 = CALCULATE(sum('Table'[Status]),ALLEXCEPT('Table','Table'[ID]))
 
11.PNG

 





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors