+ Reply to Thread
Results 1 to 11 of 11

Pivot to show only Non-Zero/blank field and total for Column

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Pivot to show only Non-Zero/blank field and total for Column

    Hi, I wanted my pivot to exclude blank/zero field. How do i do it? And also, i cant seem to be able to get the Grand Total Function working in my excel. Y? Anyone can help?
    Look easy but somehow i not able to solve...
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column

    Could you attach excel file with example how it should be? Make sure your desired results are shown, mock them up manually if necessary.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Pivot to show only Non-Zero/blank field and total for Column

    Here. Please see attached.

    Thanks
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column

    Something like this?
    Attached Files Attached Files

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Pivot to show only Non-Zero/blank field and total for Column

    Quote Originally Posted by sandy666 View Post
    Something like this?
    Sandy can you explain how do you do it?? Fantastic job
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column

    @shukla
    You can do it without problem with Ex2016. Use PowerQuery

    jp16 should install add-ins: PowerQuery for Ex2010 and PowerPivot for Ex2010 first then use PowerQuery, unpivot product columns, and create PivotTable from "new" table

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Pivot to show only Non-Zero/blank field and total for Column

    That I know but attached file didn't belong with power query, Does it? If is after power query then where is queries ??

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column


    Data - Show queries

    Query is loaded as connection only not as table to the worksheet

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Pivot to show only Non-Zero/blank field and total for Column

    Oh gosh I didn't notice that you have hide the one sheet

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column

    I didn't hide anything

    ok, step by step
    1. click on source table
    2. Data - From table
    3. Now you've table in PQ
    4. select Date column (I changed it to date not date and time
    5. Unpivot other columns
    6. Close and load as connection
    7. Insert - Pivot Table (use external data source - select connection)
    8. create PT

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Pivot to show only Non-Zero/blank field and total for Column

    another way without PivotTable
    1. A1:F13 - source data
    2. J1:L1 - headers (created manually)
    3. J2: =OFFSET($A$2,FLOOR((ROW(A2)-ROW($A$2))/5,1),0)
    4. K2: =CHOOSE(MOD(ROW(A2)-ROW($A$2),5)+1,"Product A","Product B","Product C","Product D","Product E")
    5. L2: =OFFSET($B$2,FLOOR((ROW(B2)-ROW($B$2))/5,1),MOD(ROW(A2)-ROW($A$2),5))
    6. drag all formulas down to row (12*5)+1 ==>61 (in this case)
    7. click anywhere inside new data
    8. INSERT - Table
    9. right click on table - select Table - Total row
    10. filter third column (un-tick 0)
    11. then filter by Date as you wish
    12. of course format Date column as Date and Price column as Currency


    (see attached file)

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it - ignore it.
    Thank you.
    Attached Files Attached Files
    Last edited by sandy666; 08-29-2017 at 08:44 AM. Reason: file added

+ 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. Pivot Table: Calculated Field based on Running Total Field
    By EvolvingMonkey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-07-2016, 06:27 AM
  2. Replies: 0
    Last Post: 08-15-2016, 02:07 PM
  3. Pivot Table field show values as % of another value field
    By amotto11 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-27-2015, 04:31 PM
  4. Replies: 0
    Last Post: 06-11-2012, 10:28 AM
  5. Pivot Table: Show total % when one column is hidden.
    By G0liath02 in forum Excel General
    Replies: 1
    Last Post: 06-03-2009, 07:50 PM
  6. if formula to show blank or show instead of displaying the running total
    By js1978 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2008, 04:38 PM
  7. How can I show all field data in a pivot table, instead of blank
    By Alastair Scott in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 03:05 PM

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