Forum Discussion

Frbelotto's avatar
Frbelotto
Frequent Visitor
2 years ago
Solved

Power Bi vs Power Query group by

Help! I own a huge database containing millions of rows of transactions. It does contain many columns with diverse information :     I am working on a power bi dashboard resuming such inform...
  • RossEdwards's avatar
    2 years ago

    Two methods to achieve this.  In the Source row of your query, click the cog icon and paste your SQL code into the box under "Advanced".

     

    I prefer to use a function called Value.NativeQuery().  Its used like this (advanced editor):

     

    let
        Source = <Your current source row>,
        QueryResult = Value.NativeQuery(Source, "
    <SQL GOES HERE>
        ")
    in
        QueryResult