Forum Discussion

oj606481's avatar
oj606481
Frequent Visitor
5 years ago
Solved

Paginated Reports, Not all variables bound

Greetings,    I am working on a paginated report in Power BI Report Builder, and getting the attached error "A data source used by this report returned an error. An exception encountered while acce...
  • Hariharan_R's avatar
    5 years ago

    Hi

     

      instead of using :Parametername, use ? (Question Mark). Usually ODBC look for ? wherever you need to define the parameters.

     

    SELECT
    *
    FROM <table_1>

    WHERE <field_1> BETWEEN ? AND ?
    AND (<field_2>=? or <field_3>= ? or <field_4>=? or <field_5>= ?);

     

    Map the ? with appropriate variables in Parameters section of the dataset.

     

    Thanks

    Hari