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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ace12
Regular Visitor

Help Removing Duplicate Values But Maintaining all Rows

Hi, I have an extremely large data set. I am looking for a way to remove duplicate values for any given entry. I would like to maintain all the rows however. Is it possible to only show the first occurence based on a specific entry and then just make the duplicate rows blank. Here is an idea of what I'd like my power BI table to look like:

 

ace12_0-1707424664587.png

 

Is this possible? I have over 40 columns in my table and I need all rows. 

 

 

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Depending on what the desired output is, you can create a solution through a DAX measure. For example, if in your report you want to have the Total Amount (your last column) sum the unique values from Total Amount (your second column), the duplicates are fine. You would create a measure that sums the min/max/average using an iterator function of SUMX.

 

For example, I entered the following data which matches your first two columns: 

audreygerred_0-1707426530043.png

Now, assuming you want a total of the unique values of total amount per entry you would do the following DAX measure:

Amount Total = SUMX(SUMMARIZE('Table','Table'[Entry],"MinTotalAmount",MIN('Table'[Total Amount])),[MinTotalAmount])
 
Then you can create a visual that shows the unique amount for each entry and what they all sum up to: audreygerred_2-1707426637109.png

 

 





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

Proud to be a Super User!





View solution in original post

4 REPLIES 4
audreygerred
Super User
Super User

Depending on what the desired output is, you can create a solution through a DAX measure. For example, if in your report you want to have the Total Amount (your last column) sum the unique values from Total Amount (your second column), the duplicates are fine. You would create a measure that sums the min/max/average using an iterator function of SUMX.

 

For example, I entered the following data which matches your first two columns: 

audreygerred_0-1707426530043.png

Now, assuming you want a total of the unique values of total amount per entry you would do the following DAX measure:

Amount Total = SUMX(SUMMARIZE('Table','Table'[Entry],"MinTotalAmount",MIN('Table'[Total Amount])),[MinTotalAmount])
 
Then you can create a visual that shows the unique amount for each entry and what they all sum up to: audreygerred_2-1707426637109.png

 

 





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

Proud to be a Super User!





Genius!

Daniel29195
Super User
Super User

@ace12 

 

just one question. why do you need to do such a thing ? 

 

i would rather do the following : 
in power query, use the groupby feature : ( you can find it under  transform -->  groupby ) 

Daniel29195_3-1707425689188.png

 

 

 

output : 

Daniel29195_0-1707425544332.png

 

 

new table : 

Daniel29195_1-1707425566937.png

 

 

 

this way, you will have the count of entries which is 3 per each entry  and sum =  500

 

groupby configuration 

 

Daniel29195_2-1707425656989.png

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

The reason I need to do this is because it is the only column in my table that assigns a total value. So when I go to add this up it adds the total multiple times (or however many entry lines there are).

 

The rest of the values in my table are all allocated correctly per line. So when I go to sum them all is good.

 

If I group I will lose all the individual line item information I need.

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.