Data format in pivot table calculated item

Hi All,
I've got a pivot table with a dimension on rows and a dimension on columns and a measure. I have a "new calculated item" based on the dimension on the columns which does the following: ( ($2-$1) / ($1) ) *100
I want this calculated item shown as a percentage like 1,2% but the measure must stay a whole number like 1234 (no decimal places or percentage symbols) any suggestions on how to achieve this?
Thanks in advance!
Gilles

Hi Kishore,
It is not helpful, I mean, it doesn't solve my problem. But nice post!
What I have is the following:
--------C1------C2-----C3
R1|--123--|--345--|--678--|
R2|--124--|--346--|--679--|
R3|--125--|--347--|--670--|
What I want is the following:
--------C1------C2-----C3---------calculated item
R1|--123--|--345--|--678--|--(($2-$1) / ($1) ) *100)
R2|--124--|--346--|--679--|
R3|--125--|--347--|--670--|
the column results must remain in the same format, but the calculated item must be in the format %9.99 (to see the percentage change)
any other suggestions?

Similar Messages

  • Hide rows in Pivot table Calculated Items in OBIEE 11g

    Hi All,
    I have requirement to show values in Pivot table such that values are divided into two sub totals and also shown in Grand Total.
    For Sub Total 1, all the rows can be shown with Sub total value. But for Sub Total 2, only Total value is to be shown but not all the rows. How this requirement can be done?
    I tried to hide the rows in Sub total 2, but its effecting entire table so those rows are removing from Sub total 1 aswell which should not happen.
    Have look in below table for more clarity. My output should be as shown in Table 2 not as in Table 1.
    Table 1:
    Q1
    Q2
    Q3
    Q4
    Geography
    Type
    Asia
    T1
    100
    200
    300
    400
    America
    T2
    110
    210
    310
    410
    Europe
    T1
    120
    220
    320
    420
    SubTotal1
    330
    630
    930
    1230
    Asia
    T1
    10
    20
    30
    40
    America
    T2
    15
    25
    35
    45
    Europe
    T1
    20
    30
    40
    50
    SubTotal2
    45
    75
    105
    135
    Grand Total
    375
    705
    1035
    1365
    Table 2:
    Q1
    Q2
    Q3
    Q4
    Geography
    Type
    Asia
    T1
    100
    200
    300
    400
    America
    T2
    110
    210
    310
    410
    Europe
    T1
    120
    220
    320
    420
    SubTotal1
    330
    630
    930
    1230
    SubTotal2
    45
    75
    105
    135
    Grand Total
    375
    705
    1035
    1365
    Any ideas how this can be done??
    Thanks for your time.

    Hi,
    Thanks for the reply.
    Here Subtotal will sums up the rows basing on other column (Dimension).
    SubTotal 1 sums the rows basing on the another dimension( value A and value B). SubTotal 2 sums the rows basing on aother values(values C and values C.
    I understand the above solution, but that is not enough to my requirement as I need to show Regions for Subtotal 1, but not for Subtotal 2. And these Subtotals are based on another column (other than Regions).
    Hope this is clear now.

  • Not getting required format with pivot table view

    Hi,
    I need to create in the bellow format...
    POD     Data     01-JAN-08     01-FEB-08     01-MAR-08     01-APR-08     01-MAY-08     01-JUN-08     01-JUL-08     01-AUG-08     01-SEP-08
    AFA     Minutes/Month     44640     41760     44640     43200     44640     43200     44640     44640     43200
         P1 Login Downtime (Min)     9     0     0     0     114     99     30     42     0
         Actual Maint Time taken (Min) 1902     2350     439     409     136     1390     51     189     400
         Availability %     99.98% 100.00%     100.00%     100.00%     99.74%     99.76%     99.93%     99.91%     100.00%
    AHA     Minutes/Month     44640     41760     44640     43200     44640     43200     44640     44640     43200
         P1 Login Downtime (Min)     9     786     99     40     64     0     0     97     134
         Actual Maint Time taken (Min)     199     2412     388     290     136     500     261     156     2688
         Availability %     99.98%     98.00%     99.78%     99.91%     99.86%     100.00%     100.00%     99.78%     99.67%
    AJA     Minutes/Month     44640     41760     44640     43200     44640     43200     44640     44640     43200
         P1 Login Downtime (Min)     39     0     0     0     30     0     30     42     2
         Actual Maint Time taken (Min)     10868     2913     426     468     1187     564     391     268     1959
         Availability %     99.88%     100.00%     100.00%     100.00%     99.93%     100.00%     99.93%     99.91%     100.00%
    ANA     Minutes/Month     44640     41760     44640     43200     44640     43200     44640     44640     43200
         P1 Login Downtime (Min)     148     52     0     13     12     0     83     92     0
         Actual Maint Time taken (Min)     1104     2155     158     2701     383     681     533     1190     765
         Availability %     99.66%     99.87%     100.00%     99.97%     99.97%     100.00%     99.81%     99.79%     100.00%
    I am able to get data in the compound table view....
    POD     Month Year     Minutes/Month     P1 Login Downtime(Min)     Actual Maint Time taken (Min)     Availability %
    AFA     1-Jan-07     44,640     0     0     100
         1-Feb-07     40,320     0     0 100
    AHA     1-Jan-07     44,640     0     0     100
         1-Feb-07     40,320     0      0     100
    But I am unable to get required formate in the pivot table view. How can I get required format in PIVOT TABLE VIEW.
    I tried in somany ways, but i am unable to adjust
    like
    AFA     Minutes/Month     44640     41760     44640     43200     44640     43200     44640     44640     43200
         P1 Login Downtime (Min)     9     0     0     0     114     99     30     42     0
         Actual Maint Time taken (Min) 1902     2350     439     409     136     1390     51     189     400
         Availability %
    Please help me on this? Is there any manuall, which can help me on this?
    Thanks alot in advance.
    Thanks
    Pathan

    Pathan,
    This can be achieved by dragging the "Measure Labels" object to the rows. Put POD and Measuers object in to the rows and months in columns.
    that will work.
    thanks
    Madan Thota

  • Conditional Format in Pivot Table

    Thanks in advance...
    I created report like below in pivot table
    _____Year 2009
    ______Period 3
    Name Mark
    Aju__ 100
    Alex_ 75
    Mick_ 80
    Rabi_ 90
    sam_ 80
    from this report I need to highlight the entire row of 'Alex' and 'Sam' ...
    but its work in 'Compound Layout'
    How could I do this ?
    Regards,
    Selva

    Hi Selva,
    Conditional formatting is bit difficult for your requirement in Pivot table,because there some limitations in conditional formatting of pivot table.
    You can select the entire Pivot table and apply the conditional formatting but..conditions will only format specific Cells .. and can not format entire row.. (for exmp. it will highlight only cell of alex. and not entire row of alex)
    Hope this will help..
    Thanks.

  • Problem with background formatting in pivot table

    Hello,
    I have a problem with background formatting in pivot table. I can't change background (light blue rectangular in upper left corner). Do you have any idea how to do it?
    Here is the link to the picture of the pivot table:
    http://img163.imageshack.us/img163/110/unledfyq.png
    I would be grateful for any help.
    Regards,

    Hey,
    Check this link once, you will need java script to acheive this:
    http://everythingoracle.com/obieehdom.htm
    scroll down to this topic: Parsing using HTML DOM
    Please award points if helpful.
    Thanks,
    -Amith.

  • Can I 'explain' data in a pivot table?

    Hi All.
    I have a request that has baffled me.
    I need a way to use 'text' to describe the results of a report. If I were doing a simple report,
    this would be a non-issue. Here are my hurdles:
    I have a report that uses a Union via Set Operations (so I'm combining two result sets).
    The results are then shown in a pivot table.
    Within the pivot table, variances were created using 'New Calculated Item' under measures.
    I want to be able to display in a narrative, or some other magical technique, the results of theses calculated items.
    Data Example:
    <pre>
    Date1 Date2 Variance Variance%
    Total Sales 10 20 10 50.00
    Sales have increased 50% compared with last quarter. (<- desired result)
    Today, I can show @1, @2 etc, but it only shows the columns under 'Date 1'.
    Any help is greatly appreciated!!
    Cindy

    First, if you design a report correctly (e.g., accurate and descriptive headers, etc.), you greatly reduce the need for an "explanation of data." It should be intuitive. If it is confusing to understand, the design of the report should be looked at. (Is this report illustrating what the user needs to see? Should I use a graph instead of a table or vice-versa? Am I reporting on the right metrics?)
    That being said, it may be helpful at times to have a narrative to give an overall view of what the report displays. For this, you have the Narrative View to explain whatever might make the report more useful to the end-user. For example, you may have them note certain conditions and what that would mean, etc. (Conditional formatting would be great for this, unless you are considering cross-column conditioning in which case conditional formatting doesn't work.*)
    But if you are looking for row-by-row explanations where you use the data in the row as part of the "explanation" (as inferred by your inclusion of @1 and @2, etc. in your question), then I think you may be trying to please your end-users a bit too much. Perhaps I have misunderstood you, so I shall end here and wait for your response.
    *Until 11g, that is. There are also workarounds...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Pivot table calculated column

    Hello ,
    I have created a pivot table like below
    ________________________________ *200908 .... 200909 .... 200910*
    No Matching data in A ........................ 500 ......... 550.............. 570
    No Matching data in B ........................ 650 .......... 700 ............ 720
    Now i want to calculate the difference for the latest month and prevoius month, and would like to display as below
    __________________________________ *200908 ..... 200909 ....... 200910......... Diff*
    No Matching data in A ........................ 500 ..............550 ........... 570 ..... 20
    No Matching data in B ........................ 650 .............. 750 ........... 725 .....-25
    I am getting the difference if i give static values like '200910' - '200909'
    But i want to get the difference dynamically like 'highest date' - 'next highest date'
    Please suggest some ideas.
    Thanks in advance.
    Edited by: user11049754 on Nov 18, 2009 12:48 PM

    hi abhi,
    Do you mean moving the column position,if so your saying it as calculated item so in pivot view it would be in the measures area.From there where you want to move it??
    My understanding from your question is that in the measure area if there is another column other than calculated item,you can move above it or below it.
    By,
    Kranthi.

  • Conditional formatting in Pivot table

    Hi,
    I have a pivot table based on a Data Model.
    For simplicity It has are four fields
    1 for row, 1 for column, 1 for display data, 1 logical field.
    I want to format data cell based on the logical field, but I don't want to display the logical field on Pivot table.
    Could anyone give me a hint please
    Thanks
    Ponraj

    Okay, I was hoping the easiest part of what I did would work for you. So now we "roll up our sleeves." What is the error message you get?
    Something to remember: This only works on CHAR columns. If you have a calculated measure, you have to do it in the BMM layer, then bring the "string version" of the columns in the Presentation Layer.

  • MSSQL Query/View Single Line Output For Combined Multiple Data Elements - Possible Pivot Table?

    HELLO...
    I hope you experts out there can help me.  Consider the following (2) Tables in MSSQL:
    1. TENDERED --> Primary Key = DATE / DOC_NO / PAYMENT_SEQ_NO
    DATE
    DOC_NO
    PMNT_SEQ_NO
    PAYCODE_TYPE
    AMOUNT
    2. TENDERED_CR_CARD -->Primary Key = DATE / DOC_NO / PAYMENT_SEQ_NO
    DATE
    DOC_NO
    PMNT_SEQ_NO
    CR_CARD_NO_MASKED
    CR_CARD_NAME
    CR_CARD_EXP_DATE
    These two tables are certainly related, based on their Primary Key values.
    Now, consider the following data in those two tables:
    DATE            
    DOC_NO      PMNT_SEQ_NO              
    PAYCODE_TYPE               
    AMOUNT
    03/10/2014         100001 
    1             
    CASH            
    100.00
    03/10/2014         100001 
    2             
    CASH                             
    -9.75
    03/10/2014         100002 
    1             
    CASH                             
    50.00
    03/10/2014         100002 
    2             
    VISA                             
    100.00
    03/10/2014         100002 
    3             
    VISA             
                   250.00
    03/10/2014         100003 
    1             
                            MC
    125.00
    03/10/2014         100003 
    2             
    AMEX           
    75.00
    DATE          
    DOC_NO PMNT_SEQ_NO  CR_CARD_MASKED     
    NAME            
    CR_CARD_EXP
    03/10/2014  100002   2                       4225******801289  
    MARY JONES   2016/08/31
    03/10/2014  100002   3                       4121******637442  
    JOHN DOE      2015/04/30
    03/10/2014  100003   1                       5428******971134  
    MIKE BAKER   2018/09/30
    03/10/2014  100003   2                       3732*****344756    
    LINDA LIU      2017/07/31
    OK...so what we NEED...is a Combined, SINGLE RECORD Audit Report type query. 
    The resulting query should show, based on the Data from above, the SINGLE LINE represented in the Attached Spreadsheet. 
    NOTE...what's important to point out here..is that ONLY the 'CASH' Tender gets "summed"...EACH INDIVIDUAL Credit Card record MUST have its own Field...as represented in the corresponding Columns of the Spreadsheet (i.e. PMT_TYP_1, AMT_1, PMT_TYP_2,
    AMT_2, and so forth).
    PLEASE HELP!  Any suggestions/advice would be most appreciated! 
    Thank You!...Mark

    I would not do this in SQL if I could possibly avoid it.  Instead do it in the front end.
    If you must do it in SQL, this is a dynamic pivot on multiple columns.  Naomi Nosonovsky has a blog at
    http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/dynamic-pivot-on-multiple-columns/ on how to do that.  Look especially at her second example using the claims table.  Of course, you must do some manipulation even before you do the multi-column
    pivot, since you must first combine all the cash entries.
    So one way to do it would be to build a temp table with all the entries you have except the cash entries combined into one payment sequence number.  To do that you may need specifications that are not clear to me from what you have given us.  For
    example, if PMT SEQ 1 is VISA,  PMT SEQ 2 is CASH, PMT SEQ 3 is VISA, PMT SEQ 4 is CASH, and PMT SEQ 5 is VISA, you want to combine the two cash payments.  So they become PMT SEQ 2?  If so, what happens to PMT SEQ 4 - is it left N/A or does
    PMT SEQ 5 become PMT SEQ 4?
    But once you have this temp table with the cash payments combined in the algorithm you need, then you can use Naomi's method to do the multi-column pivot.  Note that Naomi uses the code
    FROM INFORMATION_SCHEMA.COLUMNS
    WHERE TABLE_Name = 'Claims'
    to get the column names from the permanent table Claims.  To get the column names from a temp table use code like the following.  To find the column names in a temp table named #MyTempTable, do
    From tempdb.sys.columns
    Where object_id = OBJECT_ID('#MyTempTable')
    But as I say, if feasible, I would do this in the front end, not in SQL.  T-SQL is a very good language for storing and retrieving data, not so good at formatting it. 
    Tom

  • TSQL query to calculate Count / Sum grouping by date on a Pivot Table

    Hi All
    I need help to group the pivot table output to group by dates and sum/count the values. I have a table like shown below.
    Date
    Student 
    Subject
    Hunt
    Marks
    18/02/2014
    Sam 
    Maths
    1
    20
    18/02/2014
    Sam 
    Maths
    1
    10
    18/02/2014
    Sam 
    Maths
    2
    30
    18/02/2014
    Luke
    Science
    1
    50
    17/02/2014
    Sam 
    Maths
    2
    50
    17/02/2014
    Luke
    Science
    2
    60
    16/02/2014
    Luke
    Science
    2
    20
    16/02/2014
    Luke
    Science
    3
    20
    I want to Group by dates and move the Hunt to columns calculating their counts and sum their marks too. Like given below.
    I wrote a pivot query like below but If i group it with dates and calculate the total marks it throws aggregate errors.
    Create Table Student_Log ([Date] datetime ,Student varchar (20), Subject varchar (20) ,Hunt int ,Marks int )
    Go
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','10')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','2','30')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Luke','Science','1','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Sam ','Maths','2','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Luke','Science','2','60')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','2','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','3','20')
    Go
    select * from Student_Log
    select [DATE] , [Student], [Subject] ,[1],[2],[3],[4],Total =([1]+[2]+[3]+[4])
    from
    ( select [Date], [Student], [Subject],[Hunt],[Marks] from Student_Log
    )x
    pivot
    count ( [Hunt]) for [Hunt]
    in ([1],[2],[3],[4])
    )p
    order by [Date] desc
    I have done this far only. More than this I need to enhance it with the Percentage of Hunts for each Student.
    ie like below table.
    On 18th Sam in Maths he had 2 rows on 1st hunt  and 1 row on 2nd hunt. So On the Pivot table is it possible to represent it on percentage using the Total Attempts column.
    Thanks a lot in advance.
    Its runnung in SQL 2000 Server.

    Create Table Student_Log ([Date] datetime ,Student varchar (20), Subject varchar (20) ,Hunt int ,Marks int )
    Go
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','1','10')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Sam ','Maths','2','30')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-18 15:00:00.000','Luke','Science','1','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Sam ','Maths','2','50')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-17 15:00:00.000','Luke','Science','2','60')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','2','20')
    INSERT INTO Student_Log ([Date],Student, [Subject],Hunt,Marks) VALUES('2014-02-16 15:00:00.000','Luke','Science','3','20')
    Go
    select * from Student_Log
    ;with mycte as
    Select [Date], [Student], [Subject] ,
    Count(CASE WHEN [Hunt]=1 Then Hunt End) as Hunt1,
    Count(CASE WHEN [Hunt]=2 Then Hunt End) as Hunt2,
    Count(CASE WHEN [Hunt]=3 Then Hunt End) as Hunt3,
    Count(CASE WHEN [Hunt]=4 Then Hunt End) as Hunt4,
    Count(CASE WHEN [Hunt]=1 Then Hunt End)
    +Count(CASE WHEN [Hunt]=2 Then Hunt End)
    +Count(CASE WHEN [Hunt]=3 Then Hunt End)+
    +Count(CASE WHEN [Hunt]=4 Then Hunt End) as Total,
    ISNULL(SUM(CASE WHEN [Hunt]=1 Then Marks End),0) as Mark1,
    ISNULL(SUM(CASE WHEN [Hunt]=2 Then Marks End),0) as Mark2,
    ISNULL(SUM(CASE WHEN [Hunt]=3 Then Marks End),0) as Mark3,
    ISNULL(SUM(CASE WHEN [Hunt]=4 Then Marks End),0) as Mark4
    from Student_Log
    Group By [Date], [Student], [Subject]
    Select [Date], [Student], [Subject]
    , Cast(Hunt1*1./Total*100 as int) as [1]
    , Cast(Hunt2*1./Total*100 as int) as [2]
    ,Cast(Hunt3*1./Total*100 as int) as [3]
    ,Cast(Hunt4*1./Total*100 as int) as [4]
    ,Total,Marks=( Mark1+Mark2+Mark3+Mark4)
    from mycte
    order by [Date] DESC, Student desc
    drop table Student_Log

  • Cross Conditional format in Pivot Table

    Hi Guys
    I have an important client requirement where by I need to present the data in teh following format
    CAMBODIA LAOS SRI LANKA
    KPI_NAME PROPOSED_TARGET_VALUE MIN_TARGET_VALUE Aug-09 Sep-09 Oct-09 Aug-09 Sep-09 Oct-09 Aug-09 Sep-09 Oct-09
    SERVICES PROVISIONING CALL RATE (%) <5% <5% 21.00% 68.00% 10.80% 1.300% 0.100% 1200.% 2.500% 5.000% 66.50%
    The table is like that :
         Measure     Indicator
    13     38     White
    17     1016     Red Green
    15     3456     White
    19     8644     Grey
    12     41605.886     White
    10     52647.007     White
    This is possible only through pivot table whereby country and period dimesions have been put in pivot.
    Also there is a requirement to paint the background colour in Red Amber Green ... and for that I ahve to create a new column where after comparing i can put the status as Red ..Amber ..Green and based on the cross column conditional formating I can paint the fact value like 21.00% (shown above) .
    But when I am importing that table in pivot view all the backgrounf colour vanishes. since cross column conditional formating is not supported in pivot.
    Is there any way out to achieve this requirement .
    Thanks

    http://oraclebizint.wordpress.com/2008/04/29/oracle-bi-ee-101332-conditional-formatting-based-on-multiple-character-columns-in-a-pivot-table/

  • DATESYTD (or any Time Intelligent Function) Working Off Other Data Besides Date in the Pivot Table

    I am working on a project where I need to count the number of events from the start of the year to the end for each year in the data with each event counting the current event and any previous events sequentially.  My results should look like the following:
    MarketNameDate
    MarketCount
    2012-09-11|Kansas City
    1
    2012-09-18|Denver
    2
    2012-09-25|Chicago
    3
    2012-10-02|Seattle
    4
    2012-10-09|Phoenix
    5
    2012-10-16|Tampa
    6
    2012-10-23|Norfolk
    7
    2012-10-30|Alexandria
    8
    2012-11-06|San Jose
    9
    2012-11-27|Dallas
    10
    2012-12-04|Fort Lauderdale
    11
    2013-01-15|Los Angeles
    1
    2013-01-22|Orange County
    2
    My formula is as follows :=calculate(distinctcount(Event_Table[MarketNameDate]),datesytd(dates_dimensions[date_value]),all(dates_dimensions)).  This formula works correctly when I am using the Date_Dim table to drive the analysis in the Row Label or
    Column Label in my Pivot Table.  My events table is connected directly to Date_Dim table and I would like to use the [MarketNameDate] field instead. 
    I need to get a rolling count of the number of markets through the year, but roll up on [MarketNameDate] instead of anything out of Date_Dim.  Is this possible or do the Time Intelligence functions require you to only use Date_Dim columns as Row Label
    or Column Label in my Pivot Table.
    I would also be happy to have an alternative way of solving the problem if there is a way to do it.
    Here is an approximation of the data I am using.
    Seminar_Events
    Event_Type
    Market
    MarketNameDate
    MarketMinDate
    Preview
    Kansas City
    2012-09-11|Kansas City
    9/11/2012 0:00
    Workshop
    Kansas City
    2012-09-11|Kansas City
    9/11/2012 0:00
    Preview
    Denver
    2012-09-18|Denver
    9/18/2012 0:00
    Workshop
    Denver
    2012-09-18|Denver
    9/18/2012 0:00
    Preview
    Chicago
    2012-09-25|Chicago
    9/25/2012 0:00
    Workshop
    Chicago
    2012-09-25|Chicago
    9/25/2012 0:00
    Preview
    Seattle
    2012-10-02|Seattle
    10/2/2012 0:00
    Workshop
    Seattle
    2012-10-02|Seattle
    10/2/2012 0:00
    Preview
    Phoenix
    2012-10-09|Phoenix
    10/9/2012 0:00
    Workshop
    Phoenix
    2012-10-09|Phoenix
    10/9/2012 0:00
    Preview
    Tampa
    2012-10-16|Tampa
    10/16/2012 0:00
    Workshop
    Tampa
    2012-10-16|Tampa
    10/16/2012 0:00
    Preview
    Norfolk
    2012-10-23|Norfolk
    10/23/2012 0:00
    Workshop
    Norfolk
    2012-10-23|Norfolk
    10/23/2012 0:00
    Preview
    Alexandria
    2012-10-30|Alexandria
    10/30/2012 0:00
    Workshop
    Alexandria
    2012-10-30|Alexandria
    10/30/2012 0:00
    Preview
    San Jose
    2012-11-06|San Jose
    11/6/2012 0:00
    Workshop
    San Jose
    2012-11-06|San Jose
    11/6/2012 0:00
    Preview
    Dallas
    2012-11-27|Dallas
    11/27/2012 0:00
    Workshop
    Dallas
    2012-11-27|Dallas
    11/27/2012 0:00
    Preview
    Fort Lauderdale
    2012-12-04|Fort Lauderdale
    12/4/2012 0:00
    Workshop
    Fort Lauderdale
    2012-12-04|Fort Lauderdale
    12/4/2012 0:00
    Preview
    Los Angeles
    2013-01-15|Los Angeles
    1/15/2013 0:00
    Workshop
    Los Angeles
    2013-01-15|Los Angeles
    1/15/2013 0:00
    Preview
    Orange County
    2013-01-22|Orange County
    1/22/2013 0:00
    Date_Dimensions
    date_value
    1/1/2012 0:00
    1/2/2012 0:00
    1/3/2012 0:00
    1/4/2012 0:00
    1/5/2012 0:00
    ETC
    There is a relationship created between Date_Dimensions[Date_Value] and Seminar_Events[MarketDateName]
    Any help would be very much appreciated.
    Kind Regards,
    John

    If you want a running count on MarketNameDate, you need to create a numeric ranking of that column in a new calculated column in your Events table.
    Something like:
    Rank = RANKX(ALL(Events), [MarketNameDate], ,1)
    You should also add a year calculated column in that table:
    Year = YEAR([MarketMinDate])
    Once those are in place, this measure should work for you:
    MarketCount:=
    CALCULATE(
    DISTINCTCOUNT(
    Events[MarketNameDate]
    FILTER(
    ALL(Events),
    Events[Rank] <= MAX(Events[Rank])
    && Events[Year] = MAX(Events[Year])
    Mike, can you check out this thread?
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a2e22d61-7c32-43f2-900e-d9d6325fa26d/needed-more-answerers?forum=sqlkjpowerpivotforexcel
    Thanks!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Percentage of Total Count of Category in Raw Data Column in Pivot Table

    I have normalized my data in Excel and I have a column: "question 1" and then a column for "gender" which has values as "female" and "male". I have created a pivot table for these two variables, "Gender" and
    "Question 1". My values for Females and Males from the Gender data are presented within my pivot table. I want to present these numbers as percentages of Total "Females" and "Males" that are in the "Gender" column in
    my master dataset. Pivot tables will only allow me to do %'s of data already in the pivot table
    I am attempting to use Calculated Fields within Pivot Tables to resolve this. I do not want to create a separate column in my master data set, but rather, complete all calculations within the pivot table

    Thank you very much, 
    The steps you provided use the total "gender" within the pivot table as the "grand total". 
    If I have a binomial variable, "gender" with "male" as one of the variables, I need the grand total be the total male in the raw data. 
    Example: if there are 100 total males in the raw data for the column "gender"
    and I construct a pivot table with a dependent variable which is a survey question and "gender"  and 30 males "agreed" with the survey question and 20 females "agreed" with the survey question, your instructions for % of grand total would show 60% for
    males who agree [males + females who replied to the survey question],
    when, what I need is the total males in the raw data, 100, used as the total so that the percentage of males who answered "agreed" to the survey question is 30% of all males. 
    Thank you very much

  • Drill Down in Pivot Table with item on page level

    Hi,
    I've got a pivot table with Chart next to it. The chart is a separate view, I did not use the 'Chart pivoted results' option.
    My pivot table has one Page Level item being the Month Name.
    I now have the strange behavior that drilling down on the Pivot table elements gives me No Results as my filter would be too restrictive. The problem is with the 'Month Name'. Removing this item from the filter shows the correct data. When I use the chart next to my data to do the drilling I encounter no problems. This is because this way the restriction on the month name is not added when drilling.
    Has anybody encountered this behavior before and knows of a way to solve this.
    Thanks for your advice,
    Kris

    My query looks like this :
    SELECT TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') AS c3,
    t1584.description AS c4, t1497.project_group AS c5,
    t1497.project_desc AS c6, t1497.project_code AS c7,
    CONCAT (CONCAT (t2241.firstname, ' '), t2241.lastname) AS c8,
    t2254.employee_number AS c9, t1601.duur AS c11,
    t1601.datum_prestatie AS c12
    FROM t_projects t1497 /* Dim_PROJECTS */,
    t_organization t1579 /* DimX_ORGANIZATION_Project */,
    t_organization t1584 /* DimX_ORGANIZATION_Project_Parent */,
    t_employees t2241 /* DimA_EMPLOYEE_Prestatie */,
    t_prestaties t2254 /* DimA_PRESTATIE_Project */,
    t_prestaties t1601 /* Fact_PRESTATIES */
    WHERE ( t1497.business_domain_code = t1579.department_code
    AND t1497.project_code = t1601.project_code
    AND t1497.project_code = t2254.project_code
    AND t1579.parent_department = t1584.department_code
    AND t2241.employee_number = t2254.employee_number
    AND t1584.description = 'Specialized Technologies'
    AND t1497.project_group = 'SUPP AP TM'
    AND TO_NUMBER (TO_CHAR (t1601.datum_prestatie, 'MM'), '99') = 3
    The last row being a check on the month number.
    At the same time in OBIEE I get this :
    No Results
         The specified criteria didn't result in any data. This is often caused by applying filters that are too restrictive or that contain incorrect values. Please check your Request Filters and try again. The filters currently being applied are shown below.
         Divisie is equal to Specialized Technologies
    and      Month is equal to 3
    and      Project Group is equal to SUPP AP TM
    and      Month Name is equal to Mar
    The physical query doesn't even show the restriction on Month Name which makes it even more spooky...

  • SSAS Default Member Causing incorrect data in Excel Pivot Table using Multi-select in filter

    I have an Excel 2013 pivot table connected to an SSAS (2012) cube. One of my dimensions has a default member specified. When I drop this dimension in the filter area of my pivot table and select multiple members including the default member then
    only data for the default member is shown. Selecting multiple members where the default member is not included does not result in an issue.
    I believe this may be in an issue in how Excel builds the MDX but wanted to see if there are any work arounds.
    This issue can be recreated using AdvetureWorks using the following steps:
    Alter the Product Dimension of the SSAS Default Member by setting the default member of the Product Line Attribute to Mountain: [Product].[Product Line]&[M] 
    Process the cube
    Connect to the cube via Excel 2013
    Drag internet gross profit to the Values area (The value will be 4700437.22 which reflects the Mountain default filter)
    Drag Product Model Lines to the Filters area (you will see Mountain selected by default)
    Change the filter by checking the Select Multiple Items checkbox and checking Mountain and Road (You will see that the amount does not change)
    Change the filter again by selecting Road only (to demonstrate that Road has a value, 5602105.8, associated with it)
    Change the filter again to select Road and Touring (to demonstrate that the correct aggregation of the two selected members is preformed)

    Hi Hirmando,
    According to your description, the default member cause incorrect data when dragging a attribute that contain a default member to the FILTERS area, right?
    I can reproduce this issue on my environment, when dropping this dimension in the filter area of my pivot table and select multiple members including the default member then only data for the default member is shown. Currently, it's hard to say the root
    reason that cause this issue. In order to narrow down this issue, please apply the latest server pack and cumulative update.
    Besides, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback So that microsoft will confirm if this is a know issue.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for