IBM Apptio

IBM Apptio

 View Only
Expand all | Collapse all

Formula to return Sum for unique entry with multiple values instead of returning {various}

  • 1.  Formula to return Sum for unique entry with multiple values instead of returning {various}

    Posted Fri March 08, 2019 06:56 PM
    Table 1
    PersonTypeQuantity
    JohnApple10
    KeithApple12
    SamApple25
    MaryPear100
    KenStrawberry321
    JoanaKiwi122

     

    Table 2
    TypeQuantity
    Applevarious
    Pear100
    Strawberry321
    Kiwi122

     

    Can anyone help me figure out how I can tweak my formula to return the sum of quantity for Apple in table 1 to table 2? Right now I am getting {various} because of the multiple values for Person column in Table 1. Here's my current formula = Lookup(Type,Table 1,Type,Quantity) returning the values for Table 2. I need Quantity in for Apple in Table 2 to be the SUM, i.e. 47.

     

    Update: Ordinarily, a SumIf() within the same table should get me the right answer, but I am yet to figure out how to use the SumIf() within my lookup.

     

    Thanks in advance.






    #CostingStandard(CT-Foundation)


  • 2.  Re: Formula to return Sum for unique entry with multiple values instead of returning {various}

    Posted Sun March 10, 2019 09:31 AM

    I resolved this issue by creating a SumIf column in Table 1. Then I did my lookup on that column in Table 2. Thanks!


    #CostingStandard(CT-Foundation)


  • 3.  Re: Formula to return Sum for unique entry with multiple values instead of returning {various}

    Posted Fri November 15, 2019 06:19 AM

    Hi,

     

    Instead of using a lookup:

    =Lookup(Type,Table 1,Type,Quantity) 

     

    you can also use the following formula (but only on numeric values):

    =Table 1:Quantity[Type=Type]

     

    This will sum the values.

     

    Regards,

     

    Robert


    #CostingStandard(CT-Foundation)


  • 4.  Re: Formula to return Sum for unique entry with multiple values instead of returning {various}

    Posted Fri January 10, 2020 02:34 PM

    Here is an interesting article to check out regarding various. 

     

    @Jenny Franklin 


    #CostingStandard(CT-Foundation)