+ Reply to Thread
Results 1 to 6 of 6

Unique Count in Pivot table

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Unique Count in Pivot table

    I want unique count in pivot table, aftering surfing I have added formula in source sheet.

    Problem is I am filtering the data using Page in Pivot table which gives count 0, To explore I am attaching a file please go through it & suggest.


    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Unique Count in Pivot table

    It's not clear if you intend to use a single value in the Page Field at all times or not (ie All or one of the other options - never a combination)

    If it is to be an "All" or "one item" affair then I would suggest the following:

    Insert a Key Column to 'OB Master'

    Please Login or Register  to view this content.
    Amend your Unique Count calculation as follows

    Please Login or Register  to view this content.
    you will then find that as you adapt the Page Field on your Pivot so the Unique Count calculations will adapt accordingly.

    edit: revised formula... you would also need to refresh the Pivot Cache when you adjust the Page Field (ie refresh or use code to automate)
    Last edited by DonkeyOte; 10-27-2010 at 07:08 AM. Reason: revised

  3. #3
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Re: Unique Count in Pivot table

    single value in the Page Field at all times will be used, hey but am getting zero as result every where where as sum of formula shub be 15.
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Unique Count in Pivot table

    Why not try amending your original sample file per the instructions in post # 2

  5. #5
    Registered User
    Join Date
    08-16-2010
    Location
    INDIA
    MS-Off Ver
    EXCEL 2010
    Posts
    53

    Re: Unique Count in Pivot table

    Thanks a ton

    There is always new thing I learn & explore.. This feels great.

  6. #6
    Registered User
    Join Date
    11-19-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Unique Count in Pivot table

    Hello,
    For unique count in pivot table, could you try my solution?
    It's just code to paste and should be adapted to nearly any pivot.
    it's working as any other pivot field, so filters, row and columns fileds are taken in account.
    http://lazyvba.blogspot.com/2010/11/...-to-count.html
    Let me know

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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