Hi
Power BI doesn't support to get data from ODBC data source in a live connection or DirectQuery mode. In your scenario, you can import data from the ODBC in desktop, then publish the report to service. Then configure the ODBC data source under data gateway, configure the dataset use this gateway to access data source. Schedule refresh for the dataset.
Best Regards,
Qiuyun Yu