Forum Discussion

otravers's avatar
otravers
Icon for Community Champion rankCommunity Champion
8 years ago

Ways to share Power Query queries between PBI, Excel, SSAS: Copy/paste, templates, Data Catalog?

Now that Power Query and M work across Excel, Power BI and SSAS, I'd like to discuss the various ways to organize your queries if you intend to share them across tools. While creating proofs of concepts or pilots, and even for some production work, I like the idea of being able to go as seamlessly as possible between the three environments.

 

First, one thing that I really like is the fact we can copy one or several queries back and forth between Excel and Power BI, and that pasting a query will also paste along its dependencies (i.e. functions, parameters). The good news is that you can also do that to the query editor in SSDT (screenshots below). [I edited this part of my post, somehow I hadn't found how to do this in SSDT yesterday.]

 

Second, efficient copying/pasting is great, but how would you go about maintaining a single source for your queries?

 

As far as I can see Azure Data Catalog is still not directly integrated from the PBI Desktop UI, though you can open in PBI Desktop, Excel, and SSDT from the Azure portal:

https://docs.microsoft.com/en-us/azure/data-catalog/data-catalog-get-started

 

I just tested this feature and it works well in all three cases. With Excel, it's creating an ODC file but these are not supported in PBI:

https://blog.crossjoin.co.uk/2017/06/04/exporting-power-querym-queries-to-odc-files-in-excel-2016-get-transform/

 

Also, in the Azure data catalog I didn't see an obvious way to import a whole bundle of PQ queries/parameters/functions. I work with REST APIs that require query parameters, paging etc., it's not just about saving a couple SQL connection parameters.

 

Finally, Data Catalog Search under Get Data in Excel 2016 seems to still be looking for the old Power BI Data Catalog, while this was supposed to have been replaced by Azure last spring, as per:

https://community.powerbi.com/t5/Desktop/Azure-Data-Catalog-Integration/td-p/562

 

Frankly, the whole thing looks like an unfinished mess. Am I missing something? How are you guys dealing with centralizing and managing complex sets of PQ queries with their dependencies? Is there a smart workaround to maybe put everything in a pbit format and then somehow sync its queries with Excel and/or SSAS?

 

Just to be clear, this is about the PQ part only, I'm *not* talking about importing a whole data model as described in the following link:

http://biinsight.com/import-power-bi-desktop-model-ssas-tabular-2016/#important-updates

 

For reference, copy/paste works great between Excel, PBI, and SSDT query editors:

 

 

6 Replies