Attempting to Display Total/Percentage in Answers when grouped by Attribute

Hi all,
I'm relatively new to BI and attempting the following setup. (I'm simplifying the model somewhat of course).
I have a Fact called Job which has an attribute called Type ( along with others such as Create Date , Delivered Date , Length , Score etc ).
What I need to display , is the following columns together in Answers.
Type | Count of Type | Percentage of Total Number of Jobs.
Count of Type is just the number of times the Type shows up for a specific type value.
I can easily do a "Count of Type" as a Logical Column in the Business Model and Mapping for the Fact Table using a Default Aggregation Rule of Count.
Percentage of Total Number of Jobs is supposed to be the Percentage that the specific Type Count is of the total number of jobs . i.e. Count of Type / Total number of all Jobs as %age.
This is where I have my issue. I can create a logical column called Total Number of Jobs using default aggregation rule of count on Job ID and create a Percentage using Calculation Wizard just fine.
But when I try to have this column in Answers against the first two columns I don't get the right result - I get 100% for every row in the third column - because of course it is grouping the results by Type so it is calculating the "Total Number of Jobs" and consequently the Percentage measure for each individual Type. Thus I get something like
Type | Count of Type | Percentage of Total Number of Jobs
1 | 5 | 100%
2 | 5 | 100%
When I really want to get
Type | Count of Type | Percentage of Total Number of Jobs
1 | 5 | 50%
2 | 5 | 50%
Is there any way I can "store" the total number of jobs in the Business Model and Mapping Layer as a logical column in the Job Fact so that it does not display the count aggregate for the grouping (Type) but instead just the total count ?
I'll be glad to clarify if this sounds too fuzzy.
Thanks in advance.
AB.

Hi ,
Thanks for the reply , that is successful at getting past the issue of having 100% as the result in every row which would happen if we used a measure built in the Business Model and Mapping layer.
I'm running into some other minor issues but I think they are data row count related .. I will update this if they are not.
Additional clarification if it helps anyone else with similar issues.
Basically Type is an attribute of the Job Detail Fact ( 0 to many rows per job ) . There is also a Job Fact that is at a higher level of granularity ( one row per job ).
What I am trying to do is display the Percentage or even the Total Number of Jobs ( row count of Job Fact ) in each row along with the Type and Count of Type of Job Detail.
This is of course made complex because not all Jobs have a Job Detail row and some have many.
In my Job Detail logical table source , I have the Logical Table Job Detail mapped to both the Job and Job detail physical tables . ( I have tried connecting both via Inner and Left Outer joins) .
So ideally I would see something like
Type of Job Detail | Count of Type of Job Detail | Total Number of Jobs | Percentage of Total Number of Jobs
1 | 5 | 50 | 10%
2 | 5 | 50 | 10%
Where the percentage and total are of Jobs and the total is less than 100% .

Similar Messages

  • Running Total does not reset when group changes

    I have a manual running total for group3 that does not reset for group2
    Group2 Header (Order Status 3=Open,4=Closed)
    WhilePrintingRecords;
    currencyVar WIP=0;
    Group3 footer (Order Number)
    WhilePrintingRecords;
    currencyVar  WIP;
    WIP := WIP + {@NETWIP}
    Group2 footer
    WhilePrintingRecords;
    currencyVar WIP;
    There are no Repeat Group header on any of the groups
    Will add Group1 total when this part works.

    I am not sure if you made a typo when making your post but you are missing a colon when resetting your variable
    change from this
    currencyVar WIP=0;
    to this
    currencyVar WIP:=0;

  • Display totals of 0 when no rows problem

    i have the following data
    code code2 rank id
    a1 red ff 1
    a1 red ff 2
    a1 red cm 3
    a1 blue ff 4
    a1 blue ff 5
    a1 blue ff 6
    a1 blue wma 7
    I want to display this grouped as follows
    a1 red ff 2
    a1 red cm 1
    a1 red wma 0
    a1 red wmb 0
    a1 blue ff 3
    a1 blue cm 0
    a1 blue wma 1
    a1 blue wmb 0
    i can retrieve the counted totals of id okay and include the wma, wmb rank but can only display them once not within each group of code, code2
    Any Help?

    Hi,
    You're correct that you need an outer join.
    If you make your present query an in-line view, it doesn't matter what's going on inside it: you can OUTER JOIN to the result set as you need to.
    Try this
    WITH
    original_query  AS
    select s.code, w.watch, r.code
           AS r_code -- Make names unique
           , count(*) amt
                             from  frs_station_assignments sa,
                            frs_stations s, frs_watches w, frs_firefighters f,
                            frs_ranks r
                           where r.code = f.rnk_code
                           and sa.fgt_id = f.id
                           and sa.stn_id = s.id
                          and sa.wch_id = w.id
                          and r.code in ('CM','FF', 'WMA','WMB')
                          and s.code = 'A1'
                          and w.watch in ('RED','WHITE','BLUE','GREEN')
                  group by s.code, w.watch, r.code
                  -- ORDER BY is done in main query
    SELECT  code
    ,       colors.watch
    ,       r_code
    ,       NVL (amt, 0)
    FROM    colors
    LEFT OUTER JOIN  original_query oq
    ON      colors.watch = oq.watch
    order by code, watch, r_code;If you don't have a colors table (with one row for every possible color), you can use another in-line view:
    WITH
    colors  AS
        SELECT DISTINCT watch
        FROM  frs_watches
        WHERE ... -- If necessary
    original_query AS ...
    [PRE]
    If frs_watches is the colors table, then take all references to it out of the big in-line view, and put them in the main query.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    The Friend: Thanks from me too for that super simple fix!! I feel kinda stupid for not knowing that.
    Too bad Apple didn't:
    Give it a more intuitive name than "Status Bar"... "status" is what is shown at the top of the window along with the Artist and Song Title, e.g.; how far into the song/podcast/video I've played and how much is left,
    Put the keyboard commands in a more prominent place in their release notes when version 11 came out so we could more easily find the information they decided to hide in this attempt to make the desktop less cluttered and
    Allow us the option of displaying the data size along with the song count and duration just beneath the playllist title. The status bar is a redundant listing of information except for the data size!  Poorly conceived!
    Perhaps Apple will remedy this in a future release. For those of us who like to burn our playlists to CD, DVD and even a thumb drive this information is essential. WIthout it, we're left to guess whether a given playlist will fit on our target device.
    Thank you!

  • Display Totally paid items(cleared items), partial payments and residual pa

    Hi Experts,
    I am working on one requirement,
    Requirement: Display Totally paid items(cleared items), partial payments and residual payments.
    I am fetching data from BSAD table for Totally paid items, but I want to understand what are the fields to check when fetching data.
    Partial payments: Please let me know the logic to get data for partial payments from BSID table.
    Residual payments: what are the tables to check for residual payments and the logic.
    What are the fields that i have check and what are the fields that I have to check and get.?
    Please let me know what ever you know about this.
    Regards,
    Dileep,

    Hi,
    All types of Payments  either Totally paid items(cleared items) or  partial payments and residual payments the Document Number serious will b same.   Try to  extract by  Filtering Assignment Field .
    Thanks
    Goutam

  • How to calculate the total of bytes transferred when I submit a PDF Form in A. Reader

    Hello,
    I need to know some way for calculate the total of bytes transferred when I submit a PDF form using JavaScript, hereby:
    b ******************************************************************
    i var service_url = http://some_webservice/;
    i var send_type = "PDF";
    i var doc = event.target;
    i doc.submitForm( { cURL: service_url, cSubmitAs: send_type } );
    b ******************************************************************
    b The reason:
    I need to indicate the percentage of bytes sent to the server, in real time. Adobe Acrobat shows a progress bar and the transferred quantity in bytes, but Adobe Reader doesn't. Is in this case, when I need to find a way in order to make something similar.
    b Than you for your time.

    You can use SharePoint Designer and calculate the total in xslt view. Refer to the following post for more information
    http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/04/24/how-to-total-calculated-columns-in-a-sharepoint-list.aspx
    http://blog.metrostarsystems.com/2012/12/03/jennys-sharepoint-tip-sum-calculated-columns/
    Cheers,

  • Display Total Row In Matrix

    Hi all!
    In my addon application I have Matrix with 10 columns (2 columns with column type Edit Text, 8 columns with column type checkbox) now In 8 columns with type checkbox I want to display Footer as form Id = 60207(Menu service/service Report/Response Time by assignee Report). How To do it?
    please give me the solution to display Footer(Total) of Matrix when the column have column type is checkbox.
    Thanks & Help Me

    Hi !
    Thanks for your reply! when using 2 matrixs have problem as follow:
    My Matrix has 10 columns so will appear horizonal scrollbar so it doesn't solved this problem. My Idea I will add row after the last row and display total but i have problem: 8 columns that i want to add total have column type is checkbox so I can't. HOw to convert column type only the my row? Or give me the other solution. THanks
    Edited by: Tao lao on Apr 8, 2008 12:02 PM

  • Display Total in Group Above Report

    Hello,
    I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
    I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
    How can I display total and grand for total_qty and actual_qty?
    Any help is highly appreciable.
    Thanks

    ponic wrote:
    Hello,
    I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
    I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
    How can I display total and grand for total_qty and actual_qty?
    Any help is highly appreciable.
    ThanksIf you want to display total qty for each month and you already done it. as you says..
    total is getting displayed for each month.If not ,
    Take a summary column at month group >> at properties .. Summary Function : Sum , Reset at month group.
    and for grand total
    take a summary column outside the query. >> at properties .. Summary Function : Sum , Reset at report.
    Hope it works.
    hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem in displaying total no of pages in Smartform

    Hello experts,
    I have a problem while displaying total no of pages in Smartform.
    When no of pages are more than 10 then in total no of pages , a * is shown till current page is 9, then after it is displaying correct no of pages.
    I am using &sfsy-formpages& to get total no of pages.
    Ex: Like if I have 12 pages to print then i am getting 1/, 2/, 3/* .......... 9/* then 10/12 , 11/12, 12/12.
    Do i have to write some code for that ?? Please give your inputs to get the total no of pages.
    Thanks !

    Hi,
    Try this.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
    Thanks,
    Anitha A

  • How to Display the Percentage (%) Sign in Planning Form..???

    Hi All,
    How to display the percentage sign in the planning form in an account..?? I've an account that already set as the percentage for the data type.
    What I want is, when I type 50 in my cell, then in my form will be show 50%
    Now, I can't see the % sign on my form.
    Any Idea..??
    Thanks.
    Regards,
    VieN

    I know it's an obvious one but has caught me once or twice before when I've changed many properties numerous times in one day: Make sure you've deployed since you last set the properties!

  • How to display total for a column in updateble report

    How can I display total on a report column?
    the query is
    select htmldb_item.checkbox(1,invoice_id) invoice_id,
    htmldb_item.DISPLAY_AND_SAVE(2,invoice_no,15)invoice_no,
    htmldb_item.DISPLAY_AND_SAVE(3,to_char(invoice_date, 'DD-MON-YYYY'),20) invoice_date,
    htmldb_item.DISPLAY_AND_SAVE(4,net_amount,15) NET_AMOUNT,
    htmldb_item.text(5,net_amount,null,10) amount_adj,
    htmldb_item.text(6,net_amount,null,10) actual_amt
    from INVOICE
    where OWNER_TYPE = 'CUSTOMER'
    and OWNER_ID = :P57_CUSTOMER_NAME
    group by invoice_id,invoice_no, invoice_date,net_amount
    In the report column attributes the sum column is checked for the sal field
    When I run the report, I get a Sub-total of 0 and a Report Total of 0. What am I doing wrong?
    thanks

    Sunil,
    Which column is the sal column? I can’t see any numeric columns in your query. If you use htmldb_item calls in your query column, then this makes them strings and you can’t build sums on string columns. If you want to build sums in an updateable report / tabular form, then don’t use the htmldb_item API. Instead use the built-in display types on the report column attributes page. Using the built-in display types is the better options in most cases anyway and they do allow you to calculate sums even if the column is a text field or display and save type field.
    Regards,
    Marc

  • Webdynpro ABAP - ALV how can i display Total of Column

    Hi friends,
    Webdynpro ABAP - ALV how can i display Total of Columns.
    Please tell me any metod is there or any solution.
    Thanks,
    Kumar.

    Hi
    You can take help of following code snippet to create totals for a particular column
    Data: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_column          TYPE REF TO cl_salv_wd_column,
            lt_column type salv_wd_t_column_ref,
            ls_column type salv_wd_s_column_ref.
    Data:  lr_field_amnt type REF TO CL_SALV_WD_FIELD.
    * get reference of ALV component
      lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
      wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
    *  get function settings
      lr_function_settings ?= wd_this->alv_config_table.
    * display columns in correct order
      lr_column_settings ?= wd_this->alv_config_table.
      lt_column = lr_column_settings->get_columns( ).
      loop at lt_column into ls_column.
    CASE ls_column-id.
    when 'AMOUNT'
    * aggregate field
            CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
              EXPORTING
                FIELDNAME = 'AMOUNT'
              RECEIVING
                VALUE     = lr_field_amnt.
    * create aggregate rule as total
            CALL METHOD LR_FIELD_AMNT->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
              EXPORTING
                AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
              RECEIVING
                VALUE            = lv_aggr_rule.
    endcase.
    Regards
    Manas DUa

  • Problem in displaying total quantity

    For VA02 Transaction:
    When order contains 1 line item it is displaying fine. If order contains more line items total quantity of line items is not displaying, previously itu2019s working fine. I written perform at Item_line element to display line items and I written perform at Item_sum element to display the total quantity. (in debugging for one item 2 elements are triggering ,  when more line items item_sum element is not triggering).
    Please can u help me to display total quantity. And why item_sum element is not triggering.
    Thanks & Regards,
    Raj

    Hi,
    you meant, its not displaying the correct value or it is not at all printing any value in total when u have multiple line items.
    could you paste the code for this part...
    Rgds,
    Pavan

  • After purchasing the Export PDF Online software when I attempt to perform a "File/Save As" when viewing a document on the web it locks up windows explorer.  I receive "FIle Save As - Not Responding"

    After purchasing the Export PDF Online software when I attempt to perform a "File/Save As" when viewing a document on the web it locks up windows explorer.  I receive "FIle Save As - Not Responding"

    I think you may be correct.  It is coincidental with my upgrade to Adobe Reader 11.0.10.
    I have installed IE 11 (11.0.9600.17690)
    It may be an Adobe Reader problem in that the "tools/file save as" dialog is completely empty. No local directories are displayed for saving to.   When I try to Close(X) the "File Save As" box it pops up a message box on top that says "Adobe Reader is not Responding"  It locks up all of my IE windows, not just the one with the PDF doc.
    I need to go go Task Manager and stop the IE task.  All my browser windows are then closed.
    That is the only way to recover from the "Adobe Reader is Not Responding" message.

  • Im having trouble connecting my macbookpro to the tv. im using a mini display port to hdmi adapter, when i switch tv/video to hdmi on the tv nothing pops up, and i dont have the arrangement tap on the display settings, please help!

    im having trouble connecting my macbookpro to the tv. im using a mini display port to hdmi adapter, when i switch tv/video to hdmi on the tv nothing pops up, and i dont have the arrangement tap on the display settings, please help!

    I've found that the order of operations, so-to-speak, can be important when hooking up mini display port to HDMI.  I have the most success with the following operations in this order:
    1)  Plug HDMI cable into mini displayport adapter (the cable should not be plugged into either the TV or the computer at this point)
    2)  Plug the mini displayport end of your new super-cable to the computer.
    3)  Plug the HDMI end into your TV.
    4)  Switch inputs on your TV to the proper input.
    5)  If still nothing on the TV, try a different HDMI port on your TV.
    Hopefully this helps!  Good luck.

Maybe you are looking for

  • How to track the corresponding CWIP and Asset after settlement in reports

    Dear gurus, We are trying to develop a single report which would have commitments, actual costs, Auc amounts and Final Asset postings w.r.t a project or WBS element. What is the table where we can find AuC amount and CWIP number for given WBS element

  • Failure to maintain connection

    whenever I try to reply to a discussion or thread nothing happens, last post was 10 hours ago. I see no "locked". nope cant post in. well here is my new discussion thread. My access manager constantly disconnects while it says it is connected. someti

  • How to manually change cpInQuizScope to false

    Hey everyone! Is there a way that I can use javascript or something to change cpInQuizScope to false? I would like to exclude the first two quiz questions from the ReturnToQuiz scope.  This way, ReturntoQuiz doesn't send the user back to these questi

  • Server failing to run multiple services after Windows Update ran last night.

    SBS 2011 Server was restarted to complete installation of 8 critical security updates last night. A number of services all dependent on RPC Service will not run today. I uninstalled all the updates and restarted Server but still have the same problem

  • Crosstab repeating group

    Hi all... My data is not properly arranged inside the crosstab..I'm using for-each-group above the crosstab..so for the loops inside the crosstab I'm using as current-group...Here is my template structure <?for-each-group:GROUP;NAME?> <?NAME?> inside