Need help with query or a formula in BO XI

Posted on 2009-02-11
Last Modified: 2013-11-15
I am working on a BO report(free hand SQL) where I have two products A and B, a customer has a option to opt for any 1 product or both, the issue is that the amount is repeated twice if he opts for both products and the total revenue is not correct.

 How do I make the report to show the amount only one time.

Account #  Product    Amt
     1               A           10
     1               B           10
     2               A           20

I should have a total of 30

I am new to BO, not sure if this is possible or not, but I would appreciate any help.

Thank you


Question by:ReddyUD
    1 Comment
    LVL 26

    Accepted Solution

    select Account #  Product    sum(Amt) as Amt
    from your table
    group by Account #  Product

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now