Forum Discussion

Michelle99's avatar
Michelle99
Brass Contributor
Sep 08, 2020
Solved

ODBC data connection with parameter from drop down

Hi there,   Via ODBC I am connecting to a Pervasive (version 13) database. Is there a way for me to somehow make use of a parameter? For example, in the below screenshot I've shown (although it is ...
  • Michelle99's avatar
    Michelle99
    Sep 10, 2020

    SergeiBaklan thank you that is exactly it! I added the line you mentioned and it works! For anyone else looking for this solution, here it is:

     

     

    let
        pperiod = Excel.CurrentWorkbook(){[Name="reneirs_pperiod"]}[Content]{0}[Column1],
        pperiod_text = Text.From(pperiod),
        Source = Odbc.Query("dsn=PASTEL.odbc", "select * from LedgerTransactions where PPeriod = " & pperiod_text)
    in
        Source

     

     

Resources