+ Reply to Thread
Results 1 to 12 of 12

Power Pivot Formula not working

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Power Pivot Formula not working

    I am new to Power Pivot and busy teaching myself


    I have tried to set up a formula on Sheet4 to compute the Net Value in Col G (it is the value in Col E-Col F eg E2-F2)


    it would be appreciated if someone could kindly assist me
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Power Pivot Formula not working

    I have also posted on link below


    https://www.mrexcel.com/forum/power-...ml#post5256460

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Power Pivot Formula not working

    Hi Howard,

    I looked at your workbook earlier today and found that your debit and credit columns contain Text and not Values. I tried to convert them to values using an M Language command of "Values.FromText" without success. I couldn't figure why they didn't convert. I also tried to Clean those two columns before trying to convert them to values without success. The links to the real data is missing so I was working on the data in the sheet itself. I think to get further in question, I'd need the real data you are trying to import using PQ.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Power Pivot Formula not working

    Hi Marvin

    Thanks for your reply and input

    attached please find source files
    Attached Files Attached Files

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Power Pivot Formula not working

    Hi Howard,

    I simply can't get your Debit and Credit columns to convert to values. I've tried M language Values.FromText and the default convert to currency with no success. I do find your dates are a little screwy as the clothing seems to have a different format than shirts. M/D/Y is confused with D/M/Y and I've corrected the dates.

    Maybe someone else can jump in and find why those things that look like numbers in the debit and credit column don't convert to numbers.

    Pivot Pivot Formula.xlsx

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Power Pivot Formula not working

    Thanks for trying Marvin

    I have checked the source file and If I subtract Col E from Col F eg E2-F2 , It get the correct result, but not when I import the files into Power pivot

  7. #7
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Power Pivot Formula not working

    Copying an empty cell, then using PasteSpecial > Add works.

  8. #8
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Power Pivot Formula not working

    Hi Jason

    I tried your suggestion and it worked


    Thanks for your input

  9. #9
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,725

    Re: Power Pivot Formula not working

    Hi Marvin

    Thanks once again for trying to resolve the issue, which Jason kindly helped to resolve

    Sometimes it is such simple thing that causes a problem

  10. #10
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Power Pivot Formula not working

    FWIW, Power Query can convert the columns to currency without any issues.
    Rory

  11. #11
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Power Pivot Formula not working

    @ rorya, Given that MarvinP was unable to convert the columns with PQ, do you not think it would be helpful to all if you provided an explanation of how it can be done instead of just saying that it can?

  12. #12
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Power Pivot Formula not working

    Just select the column, and change the type dropdown to Currency.

+ 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. Blank cells not working with Power Pivot?
    By adamkurt in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 03-29-2020, 07:11 AM
  2. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  3. IF Statement not working in Power Pivot (Dax)
    By happydays886 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2017, 01:29 PM
  4. Power pivot relationship for date not working
    By AliAB in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 07-22-2017, 05:07 PM
  5. Power Pivot Help - SQL code working sort of?
    By lwilt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2016, 12:09 PM
  6. Replies: 0
    Last Post: 12-04-2015, 11:31 AM
  7. Power pivot is not downloading, or working
    By AB33 in forum Excel General
    Replies: 0
    Last Post: 08-06-2012, 12:47 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