Pivot table group by is not working

Hi Gurus,
I am using OBIEE 10g
I have Dimension and Fact table. In fact table i have some measures and which are calculated and some are aggregated functions. The Geo dimension has Division, region and Market.
In pivot table when i am grouping the values based on the Division & grand total the aggregate columns are showing the value proper where as the calculated columns gives wrong values.
Example : Measure1 : Sum(tickets), Measure 2: Sum(repeat ticket), Measure 3: sum(repeat ticket) / Sum(ticktets)
When i am grouping based on Division, i am getting the proper values for Measure 1 and measure 2 where as measure 3 is giving me different value or some time a region value.
I am not able to figure out where grouping total will be done. i checked the log file it has the simple SQL query, but i dont no where it groups the data.
Please help me its Urgent.
Regards
Ali

Hi Deepak,
Thanks for taking time and seeing my query.
In Pivot table i am using the diemnsions are Division and Region. When i am making the total of based on Division it is taking random region values and stamping on the total of division where as grand total is giving correct value. In below example Measure1 and Measure 2 is Sum( Measure1), Sum(Measure 2) where as Measure 3 is Weigted average of Sum(Measure2) / Sum(Measure1). It is giving the value correct for indivual regions where as the division total is getting worng.
Example :
Division Region Measure1 Measure 2 Measure3
Northeast NY 100 50 .5
Northeast NJ 50 25 .5
Northeast CI 100 25 0.25
Northeast total :   250          100        .4
i want the above value but i am getting like this
Division Region Measure1 Measure 2 Measure3
Northeast NY 100 50 .5
Northeast NJ 50 25 .5
Northeast CI 100 25 0.25
Northeast total :   250          100       .5
Let me know if you need any further information.

Similar Messages

  • My "Group" feature is not working in Pages 5.0.1. Any help here?

    My "Group" feature is not working in Pages 5.0.1. Any help here?

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Project Server 2010 - Project Permissions - Users and Groups filter is not working

    Hi,
    While giving permissions from project center ribbon on a project - Users and Groups filter is not working, we are not able to filter any user.
    I am not sure why this error is occurring  i tried giving permissions by opening the project  but still the same filtering is not happening. Below is the screen shot
    We have installed Service Pack 2 and June 2014 CU recently will this effect ?
    Can any one throw some light on this??
    Geeth If you feel that the answer which i gave you is Helpful please select it as Answer/helpful.

    Hi Geetha,
    Which IE version are you using? First I'd try to add the URL to the compatibility mode sites, then to the trusted sites (if it is not done already). Then I'd try to set the default browser as IE8 or 9 (pressing F12, developer tool).
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Policies assigned to groups - membership changes not working

    I have a single ZESM IR8 server setup.
    All security throughout my environment, ZESM and otherwise, is based on group membership.
    If I change a user from one group to another group this change does not reflect in their policy assignment.
    Scenario: GroupA = standard user policy, GroupB = power user policy.
    UserA was first in Group A and therefore got the standard user policy.
    UserA now requires the power user policy.
    Remove UserA from GroupA and add UserA to GroupB (in iManager).
    UserA does NOT get the "power user" policy that is assigned to GroupB
    Am aware that I can assign the policy at a user level but this is NOT an option in my environment. All security assignments MUST happen at a group level.

    What you observed is the expected behavior.
    ZESM doesn't updates group membership in real time once a policy has been published. I've described this behavior on previous posts.
    What the MC does behind the scenes when you click "Publish" on a container or group object is to assign the policy individually to each member/user. For groups, it resolves membership at the time the policy is published then the MC iterates among each member assigning the policy to each of them. That's why you don't see updates once the policy is published.
    Try Updating the published policy to see if that works. From the docs:
    Updating a Published Policy
    Once a policy has been published to the user(s) or computer(s), simple updates can be maintained by editing the components in a policy, and re-publishing. For example, if the ZENworks Endpoint Security Management Administrator needs to change the WEP key for an access point, the adminstrator only needs to edit the key, save the policy, and click Publish. The affected end-users and computers receive the updated policy (and the new key) at their next check-in.
    >>>
    From: laurabuckley<[email protected]>
    To:novell.support.zenworks.endpoint-security-management
    Date: 12/15/2009 7:16 AM
    Subject: Policies assigned to groups - membership changes not working
    I have a single ZESM IR8 server setup.
    All security throughout my environment, ZESM and otherwise, is based on
    group membership.
    If I change a user from one group to another group this change does not
    reflect in their policy assignment.
    Scenario: GroupA = standard user policy, GroupB = power user policy.
    UserA was first in Group A and therefore got the standard user policy.
    UserA now requires the power user policy.
    Remove UserA from GroupA and add UserA to GroupB (in iManager).
    UserA does NOT get the "power user" policy that is assigned to GroupB
    Am aware that I can assign the policy at a user level but this is NOT
    an option in my environment. All security assignments MUST happen at a
    group level.
    laurabuckley
    laurabuckley's Profile: http://forums.novell.com/member.php?userid=122
    View this thread: http://forums.novell.com/showthread.php?t=395870

  • Pivot Table: measure values are not shown

    Good afternoon!
    I'm trying to show data in pivot table. All the columns are in single logical table. I have achieved next result:
    Image: !http://pics.livejournal.com/whitish/pic/0000hgz1!
    But measures in cells are'not displayed.
    In physical data source (xls file) my data stored as:
    Image: !http://pics.livejournal.com/whitish/pic/0000kctt!
    Could someone please help me to display my measures in cells?
    Thanks in advance,
    Alex.

    Hi.
    Maybe is aggregation rule on Fuzzy Clussification measure set to None (more option/aggregation rule), if yes leave it to default.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Group contacts did not work correctly since IOS 6

    Hi Guys,
    since update from IOS 5.1.1 to IOS 6.0 it isn't possible to show groups in Contact seperatly.
    Neither on my IPHONE 4 and now on my IPHONE 5.
    In IOS 5.x.x it was possible to list seperate groups.
    I tried this with my ICLOUD Account and also with my GMAIL Account.
    I need to have different group lists for my work - e.g "Private", "Work", ...
    In IOS 5.x.x it was possible to list the contact folder, than  click on "groups" and there it was possible to select the group i wanted.
    Than I've only seen the contacts from the selected group.
    Now since update to IOS 6 it doesen't work like this. There is only the opportunity to mark or unmark a contact group to list it seperately.
    Can You explain how this is going to work on IOS6 ??
    Or do You know an application to group contacts seperatly.
    I set up my GMAIL Account as "Exchange Account" to see the contact groups.
    It's nessecary that it syncronises correctly with my GMAIL Account, because I also use an IPAD.
    I've over 250 contacts, so it has to work correctly.
    I can't understand, why apple removed this feature in IOS 6.
    I hope you know what I mean.
    Very nice greetings
    Roland

    Do you really have them all? I created a group I wanted and synced the phone. Now my phone contacts has 2 groups, all contacts and phone contacts. However, when I scroll to the bottom of the contacts list, both show the same 164 contacts, not all the 470 contacts in my address book. I have just the contacts I wanted, but it is confusing by having the "all contacts" list on the phone. They are really just the same lists.

  • SQL Server dragging of tables to worksheet is not working again in V3.2

    V3.2 the SQL Server drag of tables is not working again.
    It says Query Builder is not Supporte for this connection type.
    Query Builder disabled.

    A lost function my users will surely complain about.
    My auditors love SQL Developer because from one tool they can audit Oracle and SQL Server databases.

  • Maxl statement (display user in group all;) is not working.

    Hello,
    Hyperion version 9.3.1 upgraded to 9.3.3. Not sure the below issue is because of this
    I have an interesting issue with a maxl statement : "display user in group all;". When I execute this statement through command prompt doing essmsh, it does give out any records and also doesn't end. I will have to end it with ctrl+c.
    When I execute it through EAS console, then EAS console just hangs.
    But, if I try to retrieve the users from groups individually ( I mean "display user in group 'examplegrp';"), then its working fine and throwing out the records.
    It is giving me a hard time and my dumb mind not able to figure it out.
    Any ideas please?
    Thanks

    Hi CL, Yes I ran it on the Essbase Server. We actually set it up through a scheduled batch script which was perfectly fine till last month (I guess). We noticed this just a week ago. The only change we had in our environment is that we upgraded 9.3.1 to 9.3.3 recently. Not sure whether it is making any difference.
    Thanks,
    KK

  • Pivot created in office 2010, Not working in office XP.

    Hi,
    I have a issue, created a excel file in office version 2010 with pivot, but when i am trying to open it in office xp, File is opening but pivots are not working.I have also set it on compatible mode.
    Please suggest if anyone have idea.

    There might be no way to solve the pivots compatiblity issue in old Office version. We highly recommand upgrade Office XP to Office 2007 or higher version to avoid this kind of issue.
    Tony Chen
    TechNet Community Support

  • Swipe to close program groups iOS5 does not work!

    I try to swipe my finger to close open program groups, but it does not work in iOS5.
    I constantly find myself swiping to close the groups bechause it`s the simplest way to do it, but after upgrading to iOS5 i have to press the home button to close it.
    Is this a bug? Hopefully, bechause using the home button is not as easy as swiping my finger!

    Well it's hard to know what the OP is referring to no matter how hard you read the question.  What are "program groups"?
    As for folders, you close as you always have - touch the folder itself, touch anywhere on the home screen (which still works fine for me), or just press the home button.

  • Help me regarding pivot table group by

    Hi ,
    i am developing an bi publisher rtf template using ms word .
    i had an issue with pivot table.
    i have a table something like this
    table_code     Indicator1     year     value
    1                    a                2008     20
    1                    a                2009     40
    1                    b                2008     10
    2                    a                2008     20
    2                    a                2008     20
    2                    a                2008     20
    in table view i am doing this .. i am grouping my table by table_code
    <>TABLE_CODE
    INDICATOR1 YEAR VALUE
    INDICATOR1 YEAR VALUE
    By doing so , i am getting all the tables in my database
    like
    1
    indicator      year      value
    a                 2008     20
    a                 2008     10
    a                 2009     20
    2
    indicator      year      value
    a                 2008     20
    a                 2009     20
    b                 2008     20
    . so on
    Now i want pivot table view like
    1
    Indicator    2008   2009    2010
    a                20     30         40
    b                10     40         40
    2
    Indicator    2008   2009    2010
    a               20     30         40
    b               10     40         40
    how can this be achieved??
    how to create a group by in pivot table? where to write the group by clause?
    struck here from 1 week. any help will be appreciated .
    Thank You,
    Sunny.

    i have to use table_code also in the view??
    C H ACCTABLE_CODE
    INDICATOR1
    G YEARE
    G RSTABLE_CODE
    G INDICATOR1
    G 999.00E E
    and where to write the code.outside the table or  on which tag?? and what to write.
    please help me.
    Thanks

  • Currency conversion with Group consolidation does not work

    Currency Conversion WITHOUT group consolidation works (script logic reads CURRENCY = %GROUPS_SET%) which puts out values in USD. The values were translated correctly as per the exchange rates.
    Now, since we need consolidation, I ran currency consolidation WITH group consolidation (I changed the script logic to read GROUP = %GROUPS_SET%). FXtrans package runs successfully with 0 records (0 submitted, 0 success, 0 fail).
    I also referred NOTE 1519146.
    Please advice.
    Thanks,
    Tagz

    Hi,
    You can try to use %GROUPS_DIM% or the dimension name directly in the dynamic script as suggested.
    And also try after modifying your currency conversion script as GROUPS = %GROUPS_SET%. If this does not work please try
    by hardcoding GROUPS=Value in the script and let us know how it works.
    Hope this helps.
    Regards,
    Shoba

  • Table of Contents navigation not working

    I am using Captivate 6.  I have a separate TOC, with only 4 items.  'Self paced Learning' and 'Enable Navigation' are both checked. However, when I publish to SWF, or preview, the navigation does not work.
    Due to IT team desktop image restrictions, I can only check this in IE8, using Flash 11.1.102.55.
    Any suggestions?
    Kayellsa

    I'm having the same exact problem.  I do not have the Navigate Visited Slides only option checked.  I want the user to be able to just skip to a section.  I've noticed it works to an extent, but easliy gets hung up.  So if I click to a section, the project either gets stuck or it continues to play, but audio dissapears.

  • Group by query not working after upgrade to 11g

    Hi again,
    This once is weired.
    I had a report base on a seeded view with following query in Install Base.
    SELECT
    DESCRIPTION item_description,
    OWNER_PARTY_ID,
    sum(quantity)
    FROM CSI_INSTANCE_SEARCH_V
    WHERE 1=1
    AND serial_number is not null
    AND OWNER_PARTY_SOURCE_TABLE = 'HZ_PARTIES'
    AND NOT (INSTANCE_STATUS_ID = 1)
    AND NVL (ACTIVE_END_DATE, SYSDATE + 1) > SYSDATE
    group by OWNER_PARTY_ID
    This report was working fine in 10g and stopped pulling records after upgrade.
    We are on 11.5.10.2 and 11g.
    Does the upgrade changes EBZ views?
    I had to rewrite it using base tables and it worked again with the group by clause.
    I have verified there are no invalid objects.

    Hussein,
    This turned out to be a bug in 11.2.0.1
    As per Oracle SR
    Note.8945586.8 Ext/Pub Bug 8945586 - Wrong results using GROUP BY placement:
    Description
    Wrong results can occur when using GROUP BY placement where the aggregate column gets pruned from select list.
    Rediscovery Notes:
    Required aggregate columns are missing in the plan in the projection list of operations.
    Workaround
    set "_optimizer_group_by_placement"=FALSE

  • Why is the GROUP BY clause not working in my Query?

    Dear All,
    Below is the Query for a Summary Debtors Aged Analysis.
    The GROUP BY clause does not seem to be working.
    The Query returns all the unpaid invoices, instead of a single total row for each Customer.
    If a Customer X has 10 unpaid invoices, 10 rows are displayed - one for each invoice.
    I was expecting only 1 row for Customer X, 1 for Customer Y, etc.
    This is what GROUP BY is supposed to do, but it is not doing its work.
    What has gone wrong?
    Thanks
    Leon Lai
    Here's my Query:
    declare @taxdt datetime
    set @taxdt
    /*select 1 from jdt1 t0 where t0.TaxDate*/ = [%1]
    SELECT
    CASE
                 WHEN T0.Account = 1220101 THEN 'Prim Cust'
                 WHEN T0.Account = 1220102 THEN 'Fgn Cust'
                 WHEN T0.Account = 1220103 THEN 'Local Cust'
                 WHEN T0.Account = 1220104 THEN 'Staff Loan' 
                 WHEN T0.Account = 1220105 THEN 'Dep with TP'
                 WHEN T0.Account = 1220106 THEN 'Adv to Cust'
                 WHEN T0.Account = 1220108 THEN 'Sund Drs'
                 ELSE 'Error ! ! !'
    END AS 'Control A/c',
    T1.CardCode AS 'BP Code',
    T2.Notes2 AS 'BP Name',
    SUM ((T0.Debit - T0.Credit)) AS 'Orig. Rs',       
    SUM ((T0.BalDueDeb - T0.BalDueCred)) AS 'Bal. Rs',     
    ((SELECT SUM(T0.BalDueDeb) - Sum(T0.BalDueCred)
        WHERE DateDiff(mm, T0.TaxDate, @taxdt) = 1))    
        AS '1 Mth Ago' 
    /* Similarly for other age brackets*/
    FROM JDT1 T0
    INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    LEFT OUTER JOIN OCPR T2 ON T1.CardCode = T2.Cardcode
    LEFT OUTER JOIN OJDT T3 ON T0.TransID = T3.TransID
    LEFT OUTER JOIN OINV  T4 ON T3.TransID = T4.TransID
    LEFT OUTER JOIN ORIN  T5 ON T3.TransID = T5.TransID
    WHERE
    T1.CardType = 'C'
    and (Balance) != 0
    and (T0.BalDueDeb - T0.BalDueCred) != 0
    GROUP BY T0.Account, T1.CardCode, T2.Notes2, T0.TaxDate

    Dear Neetu,
    Thanks for your reply.
    This Query is a modification of the Query you posted in SAP B1 SQL TIPS & TRICKS
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLB-FNDebtorsAgingReportbydate
    So, maybe instead of referring to my Query, let's refer to yours. It may be easier for you to understand me.
    Once I understand the problem, I can adapt your query to suit my requirements
    So, let's start with a clean slate:
    The Query you have posted is for a DETAILED Debtors Aging Report.
    This lists all outstanding invoices, and ages them in the Age Brackets.
    What I want is a SUMMARY Debtors Aging Report.
    This will give the total amount owed by each Customer, and this amount is broken down in the Age Bracket Columns
    There will be a single row listed for each customer, something like this:
    Customer     Total Due     Current      1 Mth          2 Mth         3 Mth  etc
    Alfred       500,000       300,000       200,000
    Charles      800,000                     100,000       300,000       400,000
    How can you modify your query to make it become a Summary Report (1 line for each customer even if he has many invoices)?
    Thanks
    Leon Lai
    Here's your code
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > [%1]) AND T0.RefDate <= [%1] AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

Maybe you are looking for

  • I HAVE PROBLEM WITH UPDATE IN NOKIA N86

    Hello I'm having trouble to update the Nokia N86 At first things are correctly but then fails to update I use the Nokia OVI and error code 12 017 I hope to help me as soon as possible Look at the attachments Attachments: 1.PNG ‏17 KB 3.PNG ‏18 KB 2.P

  • Multiple Domains with oc4j-ra.xml

    Hi, I am using the oc4j-ra.xml file in the /oracle/app/10Gias/j2ee/OC4J_BPEL/application-deployments/default/DbAdapter/ directory to my database connection. I have now created a second domain for a TEST environment and want to use a seperate oc4j-ra.

  • Why am I getting an alert saying the connection to my hotmail has been reset when I can connect to other sites?

    I get an alert banner saying my connection has been reset. This only happens when I try to connect to hotmail. It works fine when I connect to other sites, including this one. This is a new problem and I have not experienced it before, even though I

  • Audio extract from DVD

    What's the better way to extract audio from DVD ?

  • How to get the last row

    I have 10 rows in my table and I have to retrive last row using rownum. For this I use SELECT * from <table_name> where rownum<=10 minus SELECT * from <table_name> where rownum<=9 The result is no rows selected In the same case if I use SELECT rownum