+ Reply to Thread
Results 1 to 9 of 9

value filter does not work or is ugly

  1. #1
    Registered User
    Join Date
    11-04-2004
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    48

    value filter does not work or is ugly

    Hey all, i recently started using pivot tables in excel 365

    in my data set i got some lines with 0 values. i want to filter out those values from my pivot so count for example does not include them.

    i tried setting value filter on the needed field > 0 but nothing.

    i tried setting value filter on the needed field > 0 after adding the field in the rows of the pivot and it seems to work.

    the problem is the solution looks ugly as i display unnecessary values in my pivot this way!

    i cant imagine there is no way to filter without displaying the values??

    any ideas?

    thx!

  2. #2
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    901

    Re: value filter does not work or is ugly

    Here is a good example on how to
    https://www.extendoffice.com/documen...ro-values.html
    If you find the suggestion or solution helpful, please consider adding reputation to the post.

  3. #3
    Registered User
    Join Date
    11-04-2004
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    48

    Re: value filter does not work or is ugly

    Hi, thx for the reply!
    the first soltion there > Hide Zero Value Row By Creating Filter Field is not an option as my data set will include new values every day. i cant go and include them all the time (!)
    the second solution is what i tried initially but does not work if i dont include the field in my rows or works if i add it but it is ugly as i explained...

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: value filter does not work or is ugly

    It would probably help if you posted a workbook. If you have rows with 0 values, there should be a field you can apply a value filter to.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    11-04-2004
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    48

    Re: value filter does not work or is ugly

    yup, just did!

    so what i need is the result of pivot 2 count for amount for vvv for Feb = 1 but without the yellow (amount) lines!

    and yes i know i can collapse them but meeh, can it be without them there like pivot 1?
    Attached Files Attached Files
    Last edited by S@S; 06-16-2021 at 05:37 PM.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,291

    Re: value filter does not work or is ugly

    You can use Powerpivot with a simple measure of:

    =COUNTROWS(FILTER(Table1,Table1[Amount]>0))

    as in the attached.
    Attached Files Attached Files

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: value filter does not work or is ugly

    Add a Slicer which will give you two options, 1 or 0 then just pick the 1.

    I suspect however that this is a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see. Clearly identify which is original data and which are the results and in a note clearly explain how you have arrived at your results.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  8. #8
    Registered User
    Join Date
    11-04-2004
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    48

    Re: value filter does not work or is ugly

    ok never worked with powerpivot before... it actually looks very usefull as it can combine multiple data sources and make derived datasets out of them!

    i think i can understand what =COUNTROWS(FILTER(Table1,Table1[Amount]>0)) formula does

    apparently power pivot goes one step further and includes any of my pivot dimentions like Type and Date in our example to the result of the formula.

    and yes this works as desired!

    need to dig further on this, thx!

  9. #9
    Registered User
    Join Date
    11-04-2004
    Location
    Athens
    MS-Off Ver
    2019
    Posts
    48

    Re: value filter does not work or is ugly

    yea 1 and 0 where just dummy values. in essence i have blank values, 0 and >0 in my real application.
    blank probably means the user forgot to enter the value, 0 means they know what they doing and say 0 revenue, while >0 is the 98% of the cases.

    so with the COUNTROWS(FILTER(Table1,Table1[Amount]>0)) i think i cover all cases.

    thx for the replies!

+ 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. My tables are ugly. How can I fix them?
    By SemperFiDevilDog in forum Excel General
    Replies: 8
    Last Post: 07-15-2020, 10:58 PM
  2. #N/A! is ugly
    By mdt175 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2014, 05:56 PM
  3. Second Advanced Filter does not work based on the data generated from the filter
    By mucc1928 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2011, 02:42 PM
  4. Ugly slow code....
    By Slyone2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-16-2010, 08:13 PM
  5. make me less ugly please
    By dabith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2006, 02:45 AM
  6. Ugly Problem
    By Alan Graybosch in forum Excel General
    Replies: 1
    Last Post: 05-11-2006, 11:00 AM
  7. [SOLVED] Filter (do not want the ugly drop-down button)
    By HT in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-30-2005, 10:25 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