Open metamoof opened 6 years ago
@metamoof Or here is how to read the power BI desktop OLAP cube: https://community.powerbi.com/t5/Desktop/Storing-and-using-information-from-a-dynamic-data-source-using/td-p/207293/page/2
@metamoof See also https://github.com/DevScope/powerbi-powershell-modules/tree/master/Modules/PowerBIPS.Tools which appears to do a lot of stuff we need to do
Having Tested with PowerBIPS.Tools, it has a perfectly adequate Export-PBIDesktopToCSV
command that we can use to read the powerquery output against a known CSV file
@metamoof This method does not actually test the powerquery; it tests the resulting table after applying DAX to the powerquery data
@metamoof I wonder if I can use the EVALUATE command in the MSSAS backend to run unit tests in M
This could be a useful way to publish the file to PowerBI for automated testing.
According to the docs saving a Power BI file to onedrive or sharepoint allows updates to that file to be sideloaded automatically to the Power BI service.
It might even be possible to use the Power BI API to upload the report, and/or update and link to the dataset