+ Reply to Thread
Results 1 to 4 of 4

How to count rows in PowerPivot with a specific value

  1. #1
    Registered User
    Join Date
    06-26-2014
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    43

    How to count rows in PowerPivot with a specific value

    Hi

    I'm new to PowerPivot and am struggling to write a measure to do what I need, here's a snippet of data that will help explain.

    For each person I need to calculate the following:

    Number of times called DONE
    Number of times called and connected DONE
    Number of times connected (not called) STUCK!!
    Number of outgoing calls DONE

    Week Beginning Called Connected Direction
    1-Feb Jo Out
    1-Feb Jase Jo In/Out
    1-Feb Jo Jo In
    1-Feb Jase Jo In/Out
    1-Feb Jase Jase In
    1-Feb Jo Jase In/Out


    Can anyone help?

    Thanks
    Jo

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: How to count rows in PowerPivot with a specific value

    Well you can write a calculate formula to do this, but it might be easier for you to write a helper column or two to give you a flag to count instead of having all the logic baked into ONE measure.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    06-26-2014
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    43

    Re: How to count rows in PowerPivot with a specific value

    Thanks mikeTRON, I've tried to do both but aren't having much luck.
    My approach was to count rows with a specific value but I can't work out how to set the value to the person in question whilst ignoring the filter on the person and counting how many times their name appears in a separate column. Is it possible to do this in PowerPivot?
    Thanks
    Jo

  4. #4
    Registered User
    Join Date
    06-26-2014
    Location
    Christchurch, New Zealand
    MS-Off Ver
    2010
    Posts
    43

    Re: How to count rows in PowerPivot with a specific value

    So I thought I was getting close but now I'm not so sure!

    I thought that the below would count the number of times a each name was shown in the table, it does but it ignores the filters applied within the pivot table. I'm not sure where to go from here, any ideas?
    CALCULATE(COUNTROWS('PhoneData 1'),FILTER('PhoneData 1',[Connected]=earlier([Called])))

    Thanks
    Jo

+ 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. Calculating quartiles for specific rows and columns in a powerpivot table
    By earth2dragon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2015, 10:50 AM
  2. New Measure Powerpivot Unique Count
    By PatSc in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-26-2014, 01:36 PM
  3. Replies: 3
    Last Post: 02-16-2013, 06:10 PM
  4. PowerPivot ReportFilter Item Count
    By cpadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-15-2012, 05:03 AM
  5. Count all rows after a specific instance
    By able72 in forum Excel General
    Replies: 27
    Last Post: 03-03-2012, 10:34 AM
  6. [SOLVED] Count rows with specific attributes in VBA
    By Steve Newhouse in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-24-2006, 09:35 PM
  7. Count rows with specific date
    By lakegoddess in forum Excel General
    Replies: 3
    Last Post: 08-09-2005, 12:05 PM

Tags for this Thread

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