Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
ozmike
Resolver I
Resolver I

Using Source = SapHana.Database(ServerName ,Query ),

Hi does anyone know how to select from using this method?

 

SapHana.Database(ServerName ,Query ),

 

 

 

 

 

 

1 ACCEPTED SOLUTION

let
Source = SapHana.Database("myhanaserver:12345",
[Query="select ""mycolumn"" from ""ZXXX.ZXXX_REP.bp::BPAddresses2"""])
in
Source

 

 Note the above syntax will work..

 

If you get this error

DataSource.Error: ODBC: ERROR [S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;260 invalid column name: Business Partner: line 1 col 8 (at pos 7)
Details:
    DataSourceKind=SapHana
    DataSourcePath=xx:123
    OdbcErrors=Table

 

 Note SAP hana internal names don't have spaces so

 

""my column"" should be ""mycolumn""

 

This is because Power Bi displays the SAP HANA column "label" not the column name, so you may need to ask a SAP hana developer the actual column name its not always a simple case of removing spaces.

 

Does anyone know if you can select form the system catalogs to get the real column names? and what is the HANA SQL?

View solution in original post

3 REPLIES 3
dexterz
Helper II
Helper II

you should create sap hana info-view

Sorry don't have write access to SAP-HANA..

 

Thats why I need this method..

let
Source = SapHana.Database("myhanaserver:12345",
[Query="select ""mycolumn"" from ""ZXXX.ZXXX_REP.bp::BPAddresses2"""])
in
Source

 

 Note the above syntax will work..

 

If you get this error

DataSource.Error: ODBC: ERROR [S1000] [SAP AG][LIBODBCHDB DLL][HDBODBC] General error;260 invalid column name: Business Partner: line 1 col 8 (at pos 7)
Details:
    DataSourceKind=SapHana
    DataSourcePath=xx:123
    OdbcErrors=Table

 

 Note SAP hana internal names don't have spaces so

 

""my column"" should be ""mycolumn""

 

This is because Power Bi displays the SAP HANA column "label" not the column name, so you may need to ask a SAP hana developer the actual column name its not always a simple case of removing spaces.

 

Does anyone know if you can select form the system catalogs to get the real column names? and what is the HANA SQL?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.