Let Power Query write your SQL for you!

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024

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

  • @GregKramerTenaciousData
    @GregKramerTenaciousData ปีที่แล้ว +10

    lookout DBAs!....Patrick is giving away secrets

  • @deejohn064
    @deejohn064 ปีที่แล้ว +5

    My company is using Paginated reports through Power BI Report Builder. I have been creating "proto-types" in Power BI to show end users before I build the whole thing as a Paginated report - this 6-minute video will have me days --- if not weeks of work - Thanks Patrick!!!!😁

  • @davidwilliamsjr8283
    @davidwilliamsjr8283 ปีที่แล้ว +6

    This is super cool. I write queries directly from the server, but this will definitely help with future projects! Thank you!

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

    Patrick!!! I spend my whole afternoon creating views I didnt know I can create them this fast!!!!game changer this one

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

    Is there a reverse version of this, that could take a SQL query and turn it into M? Because that would be extremely helpful for getting folks on my team's heads wrapped around working in M.

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

    Amazing how this has been under the hood of Excel for decades in other forms. However , its nice to see another generation learn from this.

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

    Power query replaces sql. You can create all your queries quicker with gui rather then writing a code.

  • @kais.rekouche
    @kais.rekouche ปีที่แล้ว

    That's really handy, to be able to translate all the logic into SQL, that's amazing, thank you for this post Patrick

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

    Does this mean that Power BI Is just a "wrapper" for SQL Server :)

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

    Yeheeeey...... Thank you sooooooo Muuuuccchhhhhhhh

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

    wow amazing. Never thought about. Thank you for sharing and kudos to the guy who mentioned it

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

    This is great!!! Thanks Patric.

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

    This such a cool feature! And think about the posibilities to use Power BI for development and thereafter push it more upstream in the BI-model for the company!

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

    Now I will use this after all my Transformations in PQ and create views for the entire data model. I will now only have 1 query in PQ steps, which will be "Source"

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

    Excellent Patrik, Well Done, You are a genious Teacher
    Khalid Khan, Islamabad, Pakistan

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

    Hi it's cool , i just can't see the last column when my table should be listed it's relationship

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

    Nailed it! Thanks man!

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

    Woah! 🤯Super cool trick. Thanx!

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

    Perfect as short to quick learne 🎉

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

    I've been doing this for years with PQ in Excel. And after a while realized it wasn't worth the effort to convince DBAs to create views when there is no performance benefit for me. Different if you get a good DBA who will create a materialized view and perf tune, but in general those DBAs are a rare breed.

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

    Wow this is really cool stuff. Thanks for sharing.

  • @DreW-bm7fc
    @DreW-bm7fc ปีที่แล้ว

    Thanks!

  • @brothertoughlove
    @brothertoughlove 7 หลายเดือนก่อน

    Beautiful Bro 👍🏿

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

    Lets upstream!

  • @harsh_36
    @harsh_36 5 หลายเดือนก่อน

    on my way!! to befriend DBA for all my power query ETL😂😂😂😂

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

    If the query is already folding, is there still a requirement to create a separate view?

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

    This is just to show, which sql query Power query is sending to the data source, there is no meaning of doing this extra activity.
    if it is already folding, it simply means it wont import all those unwanted data when you will refresh your dataset.
    the real question is about those transformations steps, which can't be part of query folding, and that should be requested to be done from backend

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

    Very Nice.

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

    Hi Patrick, from a performance standpoint, shouldn't that be exactly the same? Why even bother then... Not lazy, just really efficient 😅

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

      Yes, I had the same question, why creating a view ?

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

      The data will refresh quickly and less import data size I guess if the data directly comes from upstream right?

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

      The data will refresh quickly and less import data size I guess if the data directly comes from upstream right?

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

      @@desivlogs4374 Nope. Doesnt matter, a view isnt faster the a SQL query.

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

      @@MDevion but the data whole data would not be imported into powerbi ...just the data which is being fetched by the view, like the clean up will be done at the source only making it faster than actually using the power query functions..right?

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

    Awesome tricks ....

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

    can you send me the link to the data I follow through?

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

    Hi Patrick. Please, help me. PBI don't load data. I see the message (Load. Evaluation)

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

    u the best 💯💯💯💯💯💯💯💯💯💯💯💯💯

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

    A colleague of mine criticizes such SQL code. He says it's suboptimal

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

    Hi Patrick I am currently using sql views but if I need to create a lot of sql views say 5/6 per report that can bloat up my view folder really quickly can you provide any organisation/management advice would really appreciate it. Using Oracle sql developer

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

    Super cool :)

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

    Sheesh… that’s efficient

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

    Hahaha brilliant ❤

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

    What would be a reason why the last magic column would not show in Power Query? Thank you!

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

      I found it!

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

      @@tashagrihma6052 how did you find it, I've just quickly tried import and direct query mode and it doesn't show. Is there a setting i need to enable?

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

      @@joebateman9668 I was originally adding in the table or sql statement Under the Advanced options area. Instead of adding it there, I only entered the server and DB name to bring in all the tables. From there I selected the table I wanted and then it brought in the relationship column. Hope that makes sense!

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

      @@tashagrihma6052 that's what I tried as well and still nothing. Having said that, while I'm pretty new to SQL I don't think our DW properly follows best practice with defined primary and foreign keys. Don't know if that would make a difference.

  • @1yyymmmddd
    @1yyymmmddd ปีที่แล้ว

    Isn't it amazing that in every Power BI job description they require SQL skills that are not really necessary with Power BI :)

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

      knowing sql is still really important for a power bi job as with personal experience I at one point used to use power query but what I found was that it can get really complex esp when doing merges and appends and referencing at times for quite long periods was just staring at the power query screen loading so had to go back to using sql, but maybe in the future power query might become a better option than sql.

    • @1yyymmmddd
      @1yyymmmddd ปีที่แล้ว

      @@amarkhaliq5020 I try to avoid merges and appends. I also often split huge multi-column tables into smaller ones trying to normalize them as much as possible. Then all the stuff I do in DAX.

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

      @@1yyymmmddd Yeh that should work as well, I've not tried it myself but I am sure you can clean up the data and remodel it using dax.

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

    Roches’s Maxim strikes again

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

    It's a nice feature, but doesn't really solve any problems. Small queries like this are written in seconds and way more cleanly by someone who knows a bit of SQL.
    And if you do have very complex power queries, they simply will stop performing at some point and you will need to create some etl process in you source or DWH.
    I appreciate sharing knowledge, but people need to be warned and taught when to use it and when not. I have fixed too many DWH and code of analysts that didn't know what they were doing.
    But to be fair to the analysts I have seen developers making bigger sins.(Like a relational model in PowerBI with cross directional filtering and wondering why it performs like poo)

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

      🤣🤣 All these tools Power, this and Power that only make sense if your data from the source is messed up to start with.
      If an organisation is using excel, access, rdbms, even text files to manage data storage, it is always better to do things correctly from genesis when planning following standards ERD model.
      Most of these data in some of these videos would not even have needed transformation if the data model was taken into consideration from the begining before data is inputed into cells etc.
      Many people just open excel and start typing without actually think what the data should even look like and then after 10,000 rows we start looking for data transformations. A good data planning, and reverse engineering would sort these problems once and for all
      All that would be needed is SQL Query and you can get all your report, charts, graphs etc. But good insight nevertheless

  • @MsVaults
    @MsVaults 7 หลายเดือนก่อน

    Movies are too fast, beginners may have a problem with understanding ..

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

    If the DBA, doesn't reformat that query before turning it into a view, he or she probably isn't a DBA...

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

    Not so sure about that. Once you apply a few steps in PowerQuery, the generated SQL is absolutely horrendous 😂

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

    By watching this, I realized how far I am from understanding this tool.. this sounds like Chinese to me.. I understood none of it 🤦🏻‍♀️

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

    Мардат виро

  • @iiiiii-w8h
    @iiiiii-w8h ปีที่แล้ว

    that is ridiculous

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

    My company is using Paginated reports through Power BI Report Builder. I have been creating "proto-types" in Power BI to show end users before I build the whole thing as a Paginated report - this 6-minute video will have me days --- if not weeks of work - Thanks Patrick!!!!😁

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

      Are you converting the SSRS reports to paginated reports? What resources are you using for parameters to work smoothly?

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

      @@desivlogs4374 yes, I am putting filters in my query as some of the parms (prior month, etc.) and hard coding others like vendor name = xxxx. These are typically static type reports and data files (xml/csv) that run monthly.