+ Reply to Thread
Results 1 to 5 of 5

power query editor question.

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    power query editor question.

    Apologies if this is in the wrong section.

    I am using power query editor to clean some data before importing.
    I want to convert a number to zero in one cell based on info in another cell.
    It is simply if [P-Code]= 0 change value in [Unit Price] to zero, otherwise no change.

    I'm only just starting and don't know the syntex for these formula's yet.

    Thanks

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: power query editor question.

    try
    Add Column - Conditional Column then set what you want to achieve

  3. #3
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: power query editor question.

    Quote Originally Posted by sandy666 View Post
    try
    Add Column - Conditional Column then set what you want to achieve
    Thanks Sandy, the problem is that I would need to know M language to do that as well.
    I could build the formula in excel but I've never used M before.

    Regards
    Brian

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: power query editor question.

    as I said: Add Column - Conditional Column
    to do it you no need to know M just use built-in functions

    concol.png

    or try to learn from here: Conditional Column
    Last edited by sandy666; 03-06-2023 at 08:20 PM.

  5. #5
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: power query editor question.

    Quote Originally Posted by sandy666 View Post
    as I said: Add Column - Conditional Column
    to do it you no need to know M just use built-in functions

    Attachment 820530

    or try to learn from here: Conditional Column
    Thanks for your help.

+ 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. Power Query Editor will not open in Excel
    By L33smithy in forum Excel General
    Replies: 0
    Last Post: 04-28-2021, 05:40 AM
  2. [SOLVED] Advance Power Query Editor Question
    By cvici in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2021, 04:39 AM
  3. Power Query Editor (Append Queries) Question
    By wnt9080 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2020, 11:13 PM
  4. [SOLVED] Power Query Editor SQL - use query results in SQL
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2019, 03:20 PM
  5. Locking rows with Power Query Editor
    By hydrostation in forum Excel General
    Replies: 6
    Last Post: 08-02-2019, 09:57 AM
  6. Power Query Editor is Non-Responsive
    By lsloman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2019, 08:23 PM
  7. [SOLVED] power query editor - unpivot?
    By pccamara in forum Excel General
    Replies: 5
    Last Post: 09-07-2016, 10:26 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