+ Reply to Thread
Results 1 to 18 of 18

Power Query - Display only if dupicate in two columns

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Power Query - Display only if dupicate in two columns

    Hi,

    The attached excel sheet, tab Group Scheme A & B has seven names which appears in both columns A and M Example HDFC Bank

    I do not want to see any other rows except these 7 which are duplicated in A and M
    REST OF THE Columns should remain as it is. How to alter the query Group Scheme A & B to get this output
    Attached Files Attached Files

  2. #2
    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,897

    Re: Power Query - Display only if dupicate in two columns

    If I understand your needs correctly as you did not provide a mocked up solution then

    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

  3. #3
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Can you please add this my excel sheet

  4. #4
    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,897

    Re: Power Query - Display only if dupicate in two columns

    Do you not know how to copy and paste?

  5. #5
    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 - Display only if dupicate in two columns

    without additional column

    Please Login or Register  to view this content.
    Last edited by sandy666; 01-29-2023 at 04:46 AM.

  6. #6
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Did copy paste, could not make it work. Sir, I am a college student and not an expert in excel. I am learning power query for my project and this is the last step i need to complete hence seeking help
    Have attached my file without group query HUBMLE REQUEST TO HELP

    Example Scenario
    Schema A and Scheme B both has HDFC Bank
    So Ouput should be

    Stock Invested Scheme A Holding % Scheme B Holding &
    HDFC Bank 4.2% 3.90%
    Attached Files Attached Files

  7. #7
    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,897

    Re: Power Query - Display only if dupicate in two columns

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

    Since you are a student, it is more important that you try to solve it with the help we provide and not have us do your work for you. Education is about learning and not about just getting the right answers to pass. Your request in the last post does not resemble the request you made in the first post.
    Last edited by alansidman; 01-29-2023 at 05:00 AM.

  8. #8
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Sir I have the add on. Only requesting one help as in the above post

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Power Query - Display only if dupicate in two columns

    @alan

    thanks for the links in post #7. Unfortunately, the third link ( using provided PQ code) does not work. Do you have any other info please ? Thx

  10. #10
    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 - Display only if dupicate in two columns

    is that what you want?

    Stock Invested in % of Total Holdings A % of Total Holdings B
    HDFC Bank Ltd.
    4.15%
    3.90%
    Indian Hotels Company Limited
    2.18%
    1.48%
    Cummins India Ltd.
    2.15%
    4.15%
    Bosch Ltd.
    1.94%
    2.28%
    UPL Ltd.
    1.54%
    0.00%
    Canara Bank
    1.28%
    0.55%
    Voltas Limited
    1.02%
    1.38%



    Please Login or Register  to view this content.
    Last edited by sandy666; 01-29-2023 at 05:29 AM. Reason: correction

  11. #11
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Ye Sir Humble request to please incorporate in this attachment
    Attached Files Attached Files

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

    Re: Power Query - Display only if dupicate in two columns

    I suggest to read post#4

  13. #13
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Sorry am done with sandy666

  14. #14
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    I am extremely glad to all moderators, contributors and authors for creating such a great forum

  15. #15
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    Re: Power Query - Display only if dupicate in two columns

    Quote Originally Posted by sandy666 View Post
    is that what you want?

    Stock Invested in % of Total Holdings A % of Total Holdings B
    HDFC Bank Ltd.
    4.15%
    3.90%
    Indian Hotels Company Limited
    2.18%
    1.48%
    Cummins India Ltd.
    2.15%
    4.15%
    Bosch Ltd.
    1.94%
    2.28%
    UPL Ltd.
    1.54%
    0.00%
    Canara Bank
    1.28%
    0.55%
    Voltas Limited
    1.02%
    1.38%



    Please Login or Register  to view this content.
    Thank you I am happy that such forum exists wherein people like me get help almost instant

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

    Re: Power Query - Display only if dupicate in two columns

    my pleasure



    if the problem is solved, make me happy and hit Add Reputation (bottom left corner next to the post that was helpful)
    and then mark the thread as SOLVED (top above your first post - Thread Tools)

  17. #17
    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,897

    Re: Power Query - Display only if dupicate in two columns

    Pepe

    Interesting, I clicked on the link and it opened ok. Here is the same link with the full URL

    https://excel.solutions/2017/11/powe...te-code-video/

  18. #18
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Power Query - Display only if dupicate in two columns

    Thanks Alan, works great now ( perhaps a VPN problem on my side)

+ 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. Week display update automatically in Power Query
    By AMJADMemon in forum Excel General
    Replies: 0
    Last Post: 01-23-2023, 10:49 AM
  2. Unpivot Columns without Power Query
    By dluhut in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-30-2022, 06:38 AM
  3. [SOLVED] Power query naming columns
    By Dicken in forum Office 365
    Replies: 12
    Last Post: 09-02-2022, 01:15 PM
  4. Display Duplicate Records using Power Query
    By alansidman in forum Tips and Tutorials
    Replies: 1
    Last Post: 07-14-2021, 12:48 PM
  5. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  6. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  7. 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

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