+ Reply to Thread
Results 1 to 4 of 4

Getting % of observations in a pivot subject to a condition

  1. #1
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Getting % of observations in a pivot subject to a condition

    Hi Excel Forum,

    I have a dataset (pl see tab named “Data” in the attached).

    This data set was generated by running a SAS code. And the dataset gets updated in each month via monthly running of SAS code.

    I wanted to create the Table 1 found in the tab named “Manual Calculation”.

    Table 1 shows the % of accts who has utilized over 90% of their credit limit.

    To automate the process, I have created a simple pivot (see tab named “Pivot”).

    But pivot doesn’t produce the results I wanted.

    Could we create a pivot to produce the same results as in table 1.


    (Why I wanted a pivot is this. We have the SAS Add-in feature in our Excel 2010.
    So, when we run the SAS code for a new month, a new SAS table is generated. This SAS table in linked to Excel Pivot. When we re-fresh the pivot, then the pivot get updated with the inclusion of the new month’s data).
    Thanks

    Mirisa
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Getting % of observations in a pivot subject to a condition

    You have to explain how you manualy counted this values

    Table 1: Percentage of accts who has utilized over 90% of their credit limit
    Province 201504 201505
    Cali 14,3 14,3
    New_Mex 0,0 14,3
    Tex 0,0 14,3
    Total 14,3 42,9
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Getting % of observations in a pivot subject to a condition

    Hi Oeldere,

    Since this is just a small dataset (my original dataset is massive), I have counted one observation-by-observation.

    Thanks

    Mirisa

  4. #4
    Forum Contributor
    Join Date
    12-14-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Getting % of observations in a pivot subject to a condition

    Hi Again Oeldere,

    Now only I realized what you have asked.

    Table 1 should be revised like below.

    Table 1: Percentage of accts who has utilized over 90% of their credit limit
    Province 201504 201505
    Cali 50% 50%
    New_Mex 0,0 50%
    Tex 0,0 33%
    Total 14,3% 42,9%

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Summing Subject to an OR condition
    By andrewc in forum Excel General
    Replies: 2
    Last Post: 03-27-2014, 12:41 PM
  2. [SOLVED] Looping Subject to a Condition
    By andrewc in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-11-2013, 10:10 AM
  3. Transform a sheet (like a Pivot) on unique observations
    By thiagoavadore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 05:35 AM
  4. counting observations under given condition
    By Pasha81 in forum Excel General
    Replies: 6
    Last Post: 10-20-2009, 12:09 PM
  5. Counting Observations in Pivot Tables
    By epicentre in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2008, 01:53 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1