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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mussol_
Advocate II
Advocate II

TWO PATHS FOR MS ACCESS ORIGIN

Hello everybody,

 

I need two different paths for an MS Access data base.

Actually I have one working fine with the following PQ instruction for origin:

= OleDb.DataSource("provider=Microsoft.ACE.OLEDB.12.0;data source=""X:\PROFESIONAL\CUSTOMER\MANTENIMIENTO\GMAO - Access\GepmesterPlusz.mdb"";jet oledb:system database=""X:\PROFESIONAL\CUSTOMER\MANTENIMIENTO\GMAO - Access\SysGm.mdw""")

 

But my customer has another path and I want to select with a parameter (as it works with MS Excel Files, for example). If I try the same way (just replacing path for the name of the parameter) it does not work.

 

Can somebody help me with this?

 

Many thanks in advance.

 

Josep.

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @mussol_ ,

It seems that you use ODBC connector to get data from Microsoft Access database.

Normally, we could use query parameter to change the data source, but the data model and the data type should be the same.

What about your data structure of the two data source?

In addition, you could try with the direct connector for MS Access database in power bi desktop.

Capture.PNG

Best  Regards

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @mussol_ ,

It seems that you use ODBC connector to get data from Microsoft Access database.

Normally, we could use query parameter to change the data source, but the data model and the data type should be the same.

What about your data structure of the two data source?

In addition, you could try with the direct connector for MS Access database in power bi desktop.

Capture.PNG

Best  Regards

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello Again,

I tried to load the access DB with PBI access connector but all tables appear as empty.

I think the file SysGm.mdw is related with this.

 

Any other sugestion?

 

Thanks a lot!

 

Josep. 

Hi @mussol_ ,

It's really strange for that.

You could use ODBC connector and change the data source with query parameter as I suggested in my first reply.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello V-piga-msft

 

Yes, I am using ODBC connector because acces DB has passwords and users...

 

I will try your solution and explain.

 

Thanks a lot!

 

Josep

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors