+ Reply to Thread
Results 1 to 4 of 4

[Power Query] How to filter 0 from two columns in power query editor in one step?

  1. #1
    Forum Contributor daliye's Avatar
    Join Date
    05-28-2023
    Location
    North Africa
    MS-Off Ver
    microsoft excel, latest 365, 64-bit!
    Posts
    259

    [Power Query] How to filter 0 from two columns in power query editor in one step?

    Hi,
    I want to filter 0 from both columns Debit and Credit.
    The goal is only to keep rows with data and remove any others with 0s.
    This is the function in the power query for Debt
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is the function in the power query for Debt
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    How to combine both of them in one single formula or one single step?
    I mean to merge the code.

    - later edit -
    I tried this formula as well, but it resulted in an empty table
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by daliye; 07-16-2023 at 09:57 PM. Reason: Add a formula for new trial
    thnx!
    d!
    microsoft excel, latest 365, 64-bit!

  2. #2
    Forum Contributor daliye's Avatar
    Join Date
    05-28-2023
    Location
    North Africa
    MS-Off Ver
    microsoft excel, latest 365, 64-bit!
    Posts
    259

    Re: [Power Query] How to filter 0 from two columns in power query editor in one step?

    posted by mistake

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: [Power Query] How to filter 0 from two columns in power query editor in one step?

    If this is the results that you are looking for then

    Excel 2016 (Windows) 64 bit
    E
    F
    G
    1
    Acount Debt Credit
    2
    Account1
    259
    0
    3
    Account2
    0
    596
    4
    Account3
    0
    9874
    5
    Account4
    0
    6
    6
    Account6
    658
    0
    7
    Account7
    325
    0
    8
    Account8
    9
    0
    9
    Account9
    0
    65
    Sheet: Sheet1

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Contributor daliye's Avatar
    Join Date
    05-28-2023
    Location
    North Africa
    MS-Off Ver
    microsoft excel, latest 365, 64-bit!
    Posts
    259

    Re: [Power Query] How to filter 0 from two columns in power query editor in one step?

    Thanks a lot, Alan.
    So, they key is to choose OR instead of AND, right?

+ 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. Replies: 1
    Last Post: 07-14-2023, 10:15 AM
  2. [SOLVED] power query editor question.
    By ozbrian in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2023, 09:11 PM
  3. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  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. Power Query Editor is Non-Responsive
    By lsloman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2019, 08:23 PM
  6. 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
  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