+ Reply to Thread
Results 1 to 6 of 6

Dax SUMX not working because of fromatting

  1. #1
    Registered User
    Join Date
    12-02-2016
    Location
    chicago
    MS-Off Ver
    2013
    Posts
    72

    Dax SUMX not working because of fromatting

    It says the fromatting is wrong for the balance column. Not sure what to do

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

    Re: Dax SUMX not working because of fromatting

    Your balance columns are actually text. It appears that the cells that look blank are not truly empty (perhaps they were pasted from somewhere). If you clear the cells that should be blank and refresh the table in the Power Pivot window, the fields should become decimal numbers that you can then use in measures.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    12-02-2016
    Location
    chicago
    MS-Off Ver
    2013
    Posts
    72

    Re: Dax SUMX not working because of fromatting

    How to i clear the cells?

  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,298

    Re: Dax SUMX not working because of fromatting

    Either select them manually and press delete (or use the Clear or Clear Contents options on the Home tab), or use a bit of code like this, after selecting all the data (including the value cells):

    Please Login or Register  to view this content.
    Last edited by romperstomper; 05-01-2024 at 04:27 AM. Reason: typo

  5. #5
    Registered User
    Join Date
    12-02-2016
    Location
    chicago
    MS-Off Ver
    2013
    Posts
    72

    Re: Dax SUMX not working because of fromatting

    I dont know how to use that code. I can't convert any other way? i tried value function and text to column

  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,298

    Re: Dax SUMX not working because of fromatting

    You could do it in power query if you have that. If not, just copy that code into a module in your workbook, then select the data and run that reallyClearCells macro (alt+f8 to bring up the macros dialog)

+ 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. [SOLVED] DAX power Pivot Totals using SUMX and RELATED
    By Dicken in forum Office 365
    Replies: 0
    Last Post: 07-28-2022, 11:27 AM
  2. Fromatting help
    By philiphampson1 in forum Excel General
    Replies: 2
    Last Post: 08-09-2018, 05:17 AM
  3. [SOLVED] Time Fromatting
    By Ron Purpura in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2018, 02:33 PM
  4. [SOLVED] How to use Sumx - probably
    By mr_jules in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2017, 05:54 AM
  5. PowerPivot - SUMPRODUCT(SUMX) within same column
    By snakeCZ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2016, 03:43 AM
  6. Conditional Fromatting
    By PERLA1007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2016, 02:16 PM
  7. SUMX-Powerpivot Will not work with my data
    By Sweetsticks in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-28-2014, 12:59 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