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

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

Reply
AndreiaCoelho
Regular Visitor

How to sum a column disregarding repeated IDs

Hey guys!

 

I am having difficulty performing a sum of values. Currently, I have a database that identifies customers who canceled their subscription with us.


A single customer may have more than one reason that led them to cancel our services, so I have lines that repeat all data with the exception of this reason for leaving.

I would like to add up the total value of my churns, however, considering the loss value only once when I have it repeated.

AndreiaCoelho_0-1696559826576.png

 


I think I should use the churn ID column to identify if there is a repetition and disregard the sum again, but I don't know which formula to use.

1 REPLY 1
ChielFaber
Solution Supplier
Solution Supplier

You could try to create a rownumber per group (ID CHURN) using the following usefull blogpost by Radacad:

https://radacad.com/create-row-number-for-each-group-in-power-bi-using-power-query

You would then get a column with a rownumber per ID CHURN value. 
Like so:
IDCHURN   row

22                1

22                2

23                 1

24                 1

24                 2

The last step would be to filter the Row column to value = 1 using the user interface. This would leave only one row per IDCHURN.

Another option would be to remove the column Churn reason and then click on the remove duplicates option. For a how-to see : https://excelchamps.com/power-query/remove-duplicates/

 

Hope this helps!


[Tip] Keep CALM and DAX on.
[Solved?] Hit “Accept as Solution” and leave a Kudos.
[About] Chiel | SuperUser (2023–2) |

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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 Kudoed Authors