The IN Operator in Power Query

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • Looking for the IN Operator equivalent in Power Query? This video shows you exactly what you need.
    WRITTEN ARTICLE:
    gorilla.bi/power-query/in-ope...
    CONTENT
    00:00 Introduction
    01:41 IN operator single column
    03:54 Reference Table Values
    05:34 IN Operator multiple columns
    ABOUT BI Gorilla:
    BI Gorilla shares videos and articles on Power BI and Excel to help you improve your skills.
    Website: gorilla.bi
    SUBSCRIBE TO MY CHANNEL
    th-cam.com/users/bigorilla?sub_con...
    LET'S CONNECT:
    Blog: gorilla.bi
    Facebook: / bigorilla
    Twitter: / rickmaurinus
    LinkedIn: / rickmaurinus
    Thank you for your support!
    #INoperator #powerquery #bigorilla

ความคิดเห็น • 53

  • @SMITDEDHIA96
    @SMITDEDHIA96 ปีที่แล้ว +2

    Jordaar chho tame bhai. Massively underrated 🙌

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      thank you kindly 😁😁

  • @pravinshingadia7337
    @pravinshingadia7337 ปีที่แล้ว +1

    Your videos are brilliant. One of the best I have seen.

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      Thank you very much Pravin, made with pleasure!

  • @wayneedmondson1065
    @wayneedmondson1065 ปีที่แล้ว +1

    Awesome tips and techniques! Thanks for sharing. Thumbs up!!

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +1

      Happy to help!

  • @nareshch1989
    @nareshch1989 ปีที่แล้ว

    Really it's very useful video 👏👏..Request you to pls upload more videos like this ..Thank you ❤❤❤

  • @orleanCosta
    @orleanCosta ปีที่แล้ว

    Amazing! I enjoy your videos a lot. Thank you.

  • @zahoorsarbandi2982
    @zahoorsarbandi2982 ปีที่แล้ว +4

    Excellent video... there are a lot for learning in just a 10 minutes video.

  • @user-se3cz6yb2b
    @user-se3cz6yb2b ปีที่แล้ว

    Thanks for this great video! It's very helpful. Happy New Year!

  • @NMVJ
    @NMVJ ปีที่แล้ว +1

    Thanks Rick for this excellent content :)

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      My pleasure, thanks NM!

  • @decentmendreams
    @decentmendreams ปีที่แล้ว +1

    Thank you so much . Awesome trick .

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      Wow, thanks micael, Appreciate it 😁

  • @Jamieemmart
    @Jamieemmart ปีที่แล้ว +2

    Very good Rick. I have been doing this with merging which is powerful but limits me to similar combinations. The technique shown here with Table.Contains will let me do the equivalent of filter for: blue socks or yellow jeans with pockets or green jeans. So much better! I’ll definitely need List.Buffer though…

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      Great, glad to hear that. And perhaps you can use Table.Buffer for the more complex option. I’m sure you knew that one 😁

  • @YTFC2008
    @YTFC2008 6 หลายเดือนก่อน

    Excellent! Thank you and from your explanation I learned additional things too!

  • @skimpylemon8034
    @skimpylemon8034 ปีที่แล้ว

    Nice and simple, straight to the point! Thanks man! Subbed!

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +1

      ❤❤ thankks

  • @PHILIPROYBENEDICTLOUIS
    @PHILIPROYBENEDICTLOUIS ปีที่แล้ว

    Excellent video 👌

  • @dicky4780
    @dicky4780 ปีที่แล้ว

    Great video, really simplifies power querying . That's just what I need

  • @FRANKWHITE1996
    @FRANKWHITE1996 ปีที่แล้ว

    Thanks for sharing ❤

  • @BIGorilla
    @BIGorilla  8 หลายเดือนก่อน

    And for more on the List.Contains Syntax in M, check out: powerquery.how/list-contains/

  • @SiraEkabutPlus
    @SiraEkabutPlus ปีที่แล้ว

    Thx a lot

  • @roywilson9580
    @roywilson9580 ปีที่แล้ว

    Another great and useful video, thanks

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +1

      Enjoy power query, it’s awesome!

  • @ExcelOffTheGrid
    @ExcelOffTheGrid ปีที่แล้ว

    Very well explained. Good work 👍

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      Thanks Mark! 🙏 it’s fun how flexible power query is with some creativity

  • @cesarsaldana3429
    @cesarsaldana3429 2 หลายเดือนก่อน

    Uffff!!!! That is Amazing!!!!!!!!!.....

  • @muralidharannatarajan4251
    @muralidharannatarajan4251 ปีที่แล้ว

    Super 👌 I really liked it

  • @chengwang411
    @chengwang411 ปีที่แล้ว

    hmmm, great thinking :)

  • @kubansandybay496
    @kubansandybay496 ปีที่แล้ว

    Wow!

  • @bagnon
    @bagnon ปีที่แล้ว

    Can this be done with the filter function?

  • @toynkaccounting3501
    @toynkaccounting3501 ปีที่แล้ว

    Great video Rick. Question about the returned data. Instead of using a static value like "Sale", is it possible to return a value from a column in the ProductAndColor table?

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      Hi Tyonk,
      I don't fully grasp your situation and desired outcome. The ProductAndColor table I used was meant as a placeholder to filter the main table. What kind of result are you looking for?

  • @Sumanth1601
    @Sumanth1601 ปีที่แล้ว

    Excellent content 😊👍 just curious if it's faster then to use merge..I generally create a criteria table in such a scenario..

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +2

      Good question. I wouldn’t be surprised a merge is quicker. But with several if conditions your approach could result in a lot of merge tables.
      One can only test to see the performance difference. May be different case to case.

  • @Faisal63045
    @Faisal63045 ปีที่แล้ว

    Thank you for sharing this, is there a way to track values changes after refresh a power query in excel

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      I don't believe there's an easy way. You could use 2 separate tables and perhaps compare them when refreshing.

  • @ExcelInstructor
    @ExcelInstructor ปีที่แล้ว

    GReat :)
    Perfect Even :)
    I do however have a question.
    I know I can filter a Table by a List of Values,
    but from what I see it could be possible to filter Table A, by Table B,
    Can you help out figuring out the code?
    Ok after a bit of playing with some most basic tables:
    = Table.SelectRows( Custom4, each Table.Contains(Table4,[[AmountOfSales],[DateOfShipment]]))
    This is amazing!!!
    Recently Ihad to filter a Table by multiple Lists and I was going creazy!
    Thank you for showing Table.Contains function!!!
    Wow.

  • @rubenmunozverdu7528
    @rubenmunozverdu7528 ปีที่แล้ว +1

    Are there any faster alternatives? List.Contains is quite slow for big tables :(

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +2

      You can wrap your list for the first argument in a List.Buffer function. This makes power bi hold the values in memory and should speed up your query.

  • @vashisht1
    @vashisht1 ปีที่แล้ว

    Sir Rick, "enter data" feature is probably not available in excel power query,,I mean it does come with power bi....but not other way round. The only way I do this is by importing another table with item on discount and then use drill down...later if my team tells me to change the products on discount I only make changes in the table I created...something like that I do...

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว +1

      Hi!
      The feature is not natively available in Excel. If you want to have it :
      You can make it in power bi, copy paste it to excel power query. And then the functionality works to its full extend. Even editing the table.
      However, I only used this example to show how you can achieve it. You can also reference other excel based table.
      The example purely showed the syntax. Enjoy power query!

    • @vashisht1
      @vashisht1 ปีที่แล้ว

      @@BIGorilla I agree. And awesome video..cheers

  • @rashidkhan8161
    @rashidkhan8161 ปีที่แล้ว

    hi there, Could please help me to solve this, I have simple list Source = {a, b ,c , d}, when I use this List.Transform( Source, each [_=List.PositionOf(Source, _)]) it create list of record but every record showing filed name "_" , _=0, _=1 etc.. instead of A=0, B=1 etc..

  • @mattmatt245
    @mattmatt245 ปีที่แล้ว

    Is there a way to do CTE recursive in PQ ?

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      What exactly does it do? And what’s the purpose?

    • @mattmatt245
      @mattmatt245 ปีที่แล้ว

      @@BIGorilla The're used to query hierarchical data, say: employee_Id/manager_id or parent_node/leaf_node.

    • @BIGorilla
      @BIGorilla  ปีที่แล้ว

      @@mattmatt245 I’m not sure how it behaves on data. I’d need a better grasp to know how I can do it in PQ

    • @mattmatt245
      @mattmatt245 ปีที่แล้ว

      @@BIGorilla Typical example would be to find the number of direct and indirect reports for each manager. Two columns: Employee_id/Manager_id

  • @littlekidscartoonplanet
    @littlekidscartoonplanet 9 หลายเดือนก่อน

    How to use not in?