Forum Discussion

Grahamwest's avatar
Grahamwest
Regular Visitor
8 years ago

Need help with my formula

Hello Folks,

 

I got an example table with:

 

 

Batch                           Qty (Kg)          Auction no.

A1025                           5                                1

A1025                           5                                2

A1026                           4                                2

A1025                           5                                3

A1027                           7                                3

A1025                           5                                4

A1027                           7                                4

 

Now I want a new calculated table with:

 

If I select Any of the auction let say 2 so result should be:

 

Batch                           Qty (Kg)         

A1025                           5                               

A1026                           4                               

 

But if I select multiple auctions let say 1,2 & 3 so result should be: 

 

Batch                           Qty (Kg)         

A1025                           5                               

A1026                           4                               

A1027                           7                               

 

Which means I should not sum up instead gives me the unique value of each auction.

 

How to achieve this?

 

Best regards,

 

Graham

2 Replies

  • Eric_Zhang's avatar
    Eric_Zhang
    Icon for Microsoft Employee rankMicrosoft Employee

    Grahamwest wrote:

    Hello Folks,

     

    I got an example table with:

     

     

    Batch                           Qty (Kg)          Auction no.

    A1025                           5                                1

    A1025                           5                                2

    A1026                           4                                2

    A1025                           5                                3

    A1027                           7                                3

    A1025                           5                                4

    A1027                           7                                4

     

    Now I want a new calculated table with:

     

    If I select Any of the auction let say 2 so result should be:

     

    Batch                           Qty (Kg)         

    A1025                           5                               

    A1026                           4                               

     

    But if I select multiple auctions let say 1,2 & 3 so result should be: 

     

    Batch                           Qty (Kg)         

    A1025                           5                               

    A1026                           4                               

    A1027                           7                               

     

    Which means I should not sum up instead gives me the unique value of each auction.

     

    How to achieve this?

     

    Best regards,

     

    Graham


    Grahamwest

    You could choose "Don't summize".

    • Grahamwest's avatar
      Grahamwest
      Regular Visitor

      Thanks,

       

      But there is a problem, I have to plot this into Bar graph. Also there is another column of series let say:

       

      Batch                           Qty (Kg)          Auction no.       Series

      A1025                           5                                1             200

      A1025                           5                                2             200

      A1026                           4                                2             300

      A1025                           5                                3             200

      A1027                           7                                3             400

      A1025                           5                                4             200

      A1027                           7                                4             400

       

      I have to plot the graph by Series.

       

       

      Please suggest.