1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Conditional calculation for duplicates in Power Query / Excel?

I have a column called “Total” that contains the total price of a product.

The issue is that sometimes the same product appears more than once (duplicate rows). When that happens, I want to apply a specific calculation so that the total is adjusted correctly for each duplicated row.

But if the product only appears once, I want to keep the original total without any changes.

Also, this table is created by merging two tables using Power Query, and it gets updated regularly whenever new data is added to the source tables.

So basically:

If there are duplicates → apply a custom calculation

If not → keep the value as is

The solution should still work correctly after every refresh

Is there a way to handle this dynamically in Power Query or Excel?

Any suggestions or approaches would really help

submitted by /u/Sure-Barber-4161
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#generative AI for data analysis
#Excel compatibility
#rows.com
#Excel alternatives
#natural language processing for spreadsheets
#big data management in spreadsheets
#conversational data analysis
#row zero
#real-time data collaboration
#intelligent data visualization
#data visualization tools
#enterprise data management
#big data performance
#data analysis tools
#data cleaning solutions
#Power Query
#Excel
#conditional calculation
#duplicates
Conditional calculation for duplicates in Power Query / Excel?