Formula to Remove Duplicates and keep Max Value
Hi,
I am currently looking at some records where customer's accounts were waived. However a customer can have two applications waived the same day (maybe they drew on the account two different times so there are two applications on an account for them.)
I want to remove the duplicate record and keep the record showing the maximum outstanding balance.
So i'm basically trying to get a function or formula for when the customer name is the same, account is the same, date waived is the same, but outstanding balance is different to keep the record with the highest value.
Any ideas? using mysql within domo..
Answers
-
Hi @Shumilex
Can you use a group by name account and date and just use the MAX aggregate to get the highest balance?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
I agree with @GrantSmith . Use the Group By tile and put name, account, date in the select columns. Then use the Max aggregate on the balance column.
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Categories
- 10.5K All Categories
- 5 Connect
- 915 Connectors
- 250 Workbench
- 459 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 476 Datasets
- 185 Visualize
- 250 Beast Mode
- 2.1K Charting
- 11 Variables
- 16 Automate
- 354 APIs & Domo Developer
- 88 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 245 Distribute
- 62 Domo Everywhere
- 242 Scheduled Reports
- 20 Manage
- 41 Governance & Security
- 170 Product Ideas
- 1.2K Ideas Exchange
- 10 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive