+ Reply to Thread
Results 1 to 3 of 3

Change sign to specific row in column when creating a PowerQuery/Power BI sheet

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    England
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    36

    Change sign to specific row in column when creating a PowerQuery/Power BI sheet

    Hi.

    i have this report that shows sales values and it sometimes includes negative values due to credits given for different reasons.

    When creating a Power BI visualisation, I have managed to separate the groups I want to count and the last step is for me to "add back" things that are deducted as part of the table.

    Whilst I can select the "Claim Credit" (which is what I need to add), this is negative on the column and I don't know how to change for that specific row to be a positive when doing the sum. I can do it in Excel with Sumif adding a "-" at the start but I don't know how to do it on PowerBI.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,495

    Re: Change sign to specific row in column when creating a PowerQuery/Power BI sheet

    This PQ M Code will get you the gross sales values:

    Please Login or Register  to view this content.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    England
    MS-Off Ver
    Excel 2016 for Mac
    Posts
    36

    Re: Change sign to specific row in column when creating a PowerQuery/Power BI sheet

    Thank you, I'll try that now

+ 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] change code from add new sheet to add data to specific sheet name in column
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2020, 02:16 AM
  2. [SOLVED] Change the positive sign to negative sign in Pivot Table
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2020, 05:50 PM
  3. Replies: 8
    Last Post: 04-28-2020, 01:34 PM
  4. Replies: 2
    Last Post: 10-26-2018, 10:03 AM
  5. Change sign of number based on validation drop down in another column
    By stoughc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2014, 11:33 AM
  6. [SOLVED] How to delete specific numbers and or sign in a column
    By mrsewer in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-25-2013, 03:54 PM
  7. Change the sign on all numbers in a spread sheet
    By Kelly in forum Excel General
    Replies: 2
    Last Post: 08-08-2006, 09:50 AM

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