Forum Discussion

abc_777's avatar
abc_777
Solution Specialist
2 years ago
Solved

hi

Hello,

 

Here I have a few sample data.

 

C_IDC_PHONEB_POINT
16015161622020151.2176
60154161622020744.0992
6002113161952261.9386
601211316195223452.1312
9243213228135550.1
925021322813550
90174132281355619.3274
60156140400500664.8464
160151404005000
130031404005000

 

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_IDC_PHONEB_POINT
60154161622020744.0992
601211316195223452.131
90174132281355619.3274
60156140400500664.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_IDC_PHONEB_POINT
16015161622020151.2176
6002113161952261.9386
925021322813550
160151404005000
130031404005000

 

Thanks

 

13 Replies

    • abc_777's avatar
      abc_777
      Solution Specialist

      Hello,

      Thanks for your answer, I have downloaded the attached pbi file but nothing in visual. I am not clear on what should i do. would you please help me with more info?

       

      thx

       

       

      • ryan_mayu's avatar
        ryan_mayu
        Super User

        not used DAX, I did the data transform in PQ, open PQ and see the steps