+ Reply to Thread
Results 1 to 4 of 4

Text on value field but including blank spaces

  1. #1
    Registered User
    Join Date
    12-15-2020
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    5

    Text on value field but including blank spaces

    Hello there Excel people,

    After a lot of searching, i've finally found a formula that allows me to put texts on the value field. I had to use DAX for it (of course) and it actually works but there's a catch. I need the pivot table to show not only the rows with information but also the ones that don't have any. Let me show you:


    1excel.png

    That's my data base.

    2excel.png

    This is what i get using the DAX formula.

    3excel.png

    Yet this is how i want it to be displayed.



    And this is the formula that i've been using so far: =IF(COUNTROWS(VALUES(Table1[first_name])) > 1; BLANK(); VALUES(Table1[first_name]))

    Is there anything that can be added to show exactly what i want? Thanks.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,900

    Re: Text on value field but including blank spaces

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    12-15-2020
    Location
    Lima, Peru
    MS-Off Ver
    2013
    Posts
    5

    Re: Text on value field but including blank spaces

    Hi,

    Thx for replying!

    Very well then, i'll upload my spreadsheet.
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,428

    Re: Text on value field but including blank spaces

    A possible work around might be to place zeros in the cells in column C on the Data sheet that are not filled by other reasons.
    Conditional formatting (=B5=0) is then applied to the pivot table such that the font of "see" cells containing zeros is white.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Formula help for including text if cell is not blank
    By Lomalazuri in forum Excel General
    Replies: 2
    Last Post: 11-05-2014, 11:56 AM
  2. Removing blank spaces after text
    By ops154 in forum Excel General
    Replies: 6
    Last Post: 01-16-2014, 03:21 PM
  3. [SOLVED] Deleting blank spaces after text
    By longbow007 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2013, 02:29 AM
  4. Specify range of cells including spaces, manually typed text and line breaks in VBA
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-17-2012, 12:59 AM
  5. Replies: 1
    Last Post: 11-03-2005, 06:15 PM
  6. [SOLVED] Getting Notepad.exe text in Excel including leading spaces
    By Sally in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2005, 06:15 PM
  7. Saving XL ranges as Fixed Field Length Text - Leading spaces
    By AS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2005, 05:06 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