TerryHogarth21
Board Regular
- Joined
- Mar 20, 2012
- Messages
- 245
Anybody have any insights on programmatically changing the SQL string in a PowerPivot?
Do you need to use Visual Studio to get this done at the moment or C++?
I've been searching for a while and I think there's no way interacting with PowerPivot API through VBA with the current version (I'm on Excel 2013 32 Bit).
Some people I work with don't know SQL so it's hard for them to change stuff they want in the query to get different views. We don't want to give people everything by selecting all data and having them filter it out etc. (Well technically we could if everybody switched to Excel 64 bit - but that's another story).
I made some forms in Excel to query the server and include fields and all field values, then had some VBA code to create the string based on what users selected in the form, then users could copy this string manually and paste into the table properties in PowerPivot and have it refresh. That seems like a lot of work and probably not the best way to do it.
So any other ideas without having to learn other programming languages?
Do you need to use Visual Studio to get this done at the moment or C++?
I've been searching for a while and I think there's no way interacting with PowerPivot API through VBA with the current version (I'm on Excel 2013 32 Bit).
Some people I work with don't know SQL so it's hard for them to change stuff they want in the query to get different views. We don't want to give people everything by selecting all data and having them filter it out etc. (Well technically we could if everybody switched to Excel 64 bit - but that's another story).
I made some forms in Excel to query the server and include fields and all field values, then had some VBA code to create the string based on what users selected in the form, then users could copy this string manually and paste into the table properties in PowerPivot and have it refresh. That seems like a lot of work and probably not the best way to do it.
So any other ideas without having to learn other programming languages?