Forum Discussion

DiePic's avatar
DiePic
Resolver II
3 years ago
Solved

Help for power query M code FILTER

Hi all, here below I've a sql query that works fine.  I need to add a filter on column [Transaction Date]. the filter should be the equivalent of sql "WHERE YEAR([Transaction Date]) = '2023'...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi DiePic ,

    Please have a try.

    Add a custom column.

    e.g. = Table.SelectRows(#"Changed Type", Date.Year([date])=2023 and Date.Month([date])=3

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.