Forum Discussion

roryv2002's avatar
roryv2002
Frequent Visitor
1 year ago
Solved

Using Power BI Power query with a microsoft access database tabel

Hi,   i am using Power bi with a table in a access database and i am struggling to amend the M code to only pull through 1 years worth of data , when i use PBI with databricks tables, i write SQL t...
  • ToddChitt's avatar
    1 year ago

    Is your Power Query returning data from the Access table? If so, is the column you want formatted as a Date type? If so, can you not just put in a Filter Rows step in Power Query? 

    (FYI, your SQL statement of "select * where loss data >= 01/01/2024" is wrong on a few levels, like missing a FROM clause just for starters.)

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi roryv2002,

     

    Thank you for reaching out to Microsoft Fabric Community Forum.

     

    When working with Power Query and a database table, you cannot apply SQL-like conditions directly. However, you can filter data after it is loaded into Power Query.

    Import the table or query into Power Query without attempting to filter it at the source. Use Power Query’s interface to filter rows:

    Select the column you want to filter by.


    Did I answer your question? Mark my post as a solution, this will help others!
    If my response(s) assisted you in any way, don't forget to give "Kudos"

     

    Regards,

    Vinay Pabbu