Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1. Guest ji, please consider donating today!
      Become a Supporter    ::   Make a Contribution   
    Monthly Recurring Target: $300 :: Achieved: $95

Calculate report Total where subtotal uses IIf function

Discussion in 'Information Technology' started by Mannie G, Jul 28, 2006.

  1. Mannie G

    Mannie G
    Expand Collapse
    Guest

    I have a report where the individual lines of data contain EITHER value in
    Euros or in Pounds Sterling. I use the IIf function to either calculate a
    sales cost using an echange rate in the database and quantity of items OR if
    it is not in Euros to simply calculate the cost times the quantity. The
    Subtotal calculation works well.

    In the fotter of the section I want to calculate the sum of all the
    subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    use the IIf expression in the same way as above but I can't get this to work
    either. The format of the Subtotal and Total Fields are 'Currency'.

    CAn anyone help!
    --
    Thanks

    Mannie G
     
  2. Loading...

    Similar Threads Forum Date
    India Reading Calculated Banis Breaking News Mar 6, 2013
    UK British Sikh Report-2016 Breaking News Mar 24, 2016
    1984 The Story I Did Not Report In ’84 History of Sikhism Jun 28, 2015
    Opinion Top Green Beret Officer Forced to Resign Over Affair With WaPo Reporter Breaking News Jun 26, 2014
    United Sikhs New Report Shows Increasing Hate Attacks on Sikhs Sikh Organisations May 21, 2014

  3. Wayne-I-M

    Wayne-I-M
    Expand Collapse
    Guest

    Hi Mannie

    Don't sum the [subtotal] but simply =sum([FieldName])

    Hope this helps

    --
    Wayne
    Manchester, England.



    "Mannie G" wrote:

    > I have a report where the individual lines of data contain EITHER value in
    > Euros or in Pounds Sterling. I use the IIf function to either calculate a
    > sales cost using an echange rate in the database and quantity of items OR if
    > it is not in Euros to simply calculate the cost times the quantity. The
    > Subtotal calculation works well.
    >
    > In the fotter of the section I want to calculate the sum of all the
    > subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    > use the IIf expression in the same way as above but I can't get this to work
    > either. The format of the Subtotal and Total Fields are 'Currency'.
    >
    > CAn anyone help!
    > --
    > Thanks
    >
    > Mannie G
     
  4. Mannie G

    Mannie G
    Expand Collapse
    Guest

    Hi Wayne

    No Joy with your suggestion. Subtotal is the field name. If I use the
    function =Sum([Subtotal]) then when I runthe report I get a text box with
    ENTER PARAMETER VALUE Subtotal.
    I have also changed the name of the field to see if it makes any difference,
    I get the same result.
    --
    Thanks

    Mannie G


    "Wayne-I-M" wrote:

    > Hi Mannie
    >
    > Don't sum the [subtotal] but simply =sum([FieldName])
    >
    > Hope this helps
    >
    > --
    > Wayne
    > Manchester, England.
    >
    >
    >
    > "Mannie G" wrote:
    >
    > > I have a report where the individual lines of data contain EITHER value in
    > > Euros or in Pounds Sterling. I use the IIf function to either calculate a
    > > sales cost using an echange rate in the database and quantity of items OR if
    > > it is not in Euros to simply calculate the cost times the quantity. The
    > > Subtotal calculation works well.
    > >
    > > In the fotter of the section I want to calculate the sum of all the
    > > subtoatal; However I cannot get = Sum ([Subtotal]) to work. I have tried to
    > > use the IIf expression in the same way as above but I can't get this to work
    > > either. The format of the Subtotal and Total Fields are 'Currency'.
    > >
    > > CAn anyone help!
    > > --
    > > Thanks
    > >
    > > Mannie G
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page