Forum Discussion
abc_777
2 years agoSolution Specialist
hi
Hello,
Here I have a few sample data.
| C_ID | C_PHONE | B_POINT |
| 16015 | 161622020 | 151.2176 |
| 60154 | 161622020 | 744.0992 |
| 60021 | 131619522 | 61.9386 |
| 60121 | 131619522 | 3452.1312 |
| 92432 | 132281355 | 50.1 |
| 92502 | 132281355 | 0 |
| 90174 | 132281355 | 619.3274 |
| 60156 | 140400500 | 664.8464 |
| 16015 | 140400500 | 0 |
| 13003 | 140400500 | 0 |
C_ID--- Customer ID is unique
C_PHONE--- Customer Phones are sometimes duplicates or more than even two time
B_POINT--- got Point balance is according to customer ID and Customer Phone number
What I need is,
1) I want to keep the Customer's Phone number which has the highest Balance Point (Remove Duplicate mobile number as per the highest Balance Point)
Expected Outcome for Highest,
| C_ID | C_PHONE | B_POINT |
| 60154 | 161622020 | 744.0992 |
| 60121 | 131619522 | 3452.131 |
| 90174 | 132281355 | 619.3274 |
| 60156 | 140400500 | 664.8464 |
2) I want to keep the Customer's Phone number which has the lowest Balance Point (Remove Duplicate mobile number as per lowest Balance Point)
Expected Outcome for Lowest,
| C_ID | C_PHONE | B_POINT |
| 16015 | 161622020 | 151.2176 |
| 60021 | 131619522 | 61.9386 |
| 92502 | 132281355 | 0 |
| 16015 | 140400500 | 0 |
| 13003 | 140400500 | 0 |
Thanks
PBI file attached.
Hope this helps.
13 Replies
- ryan_mayuSuper User
- Ashish_MathurSuper User
Hi,
Are you looking for a DAX or a Power Query solution?