Compare DAX and M formulas in Visual Studio Code is really easy with the help of Power BI Sidetools.
As it is possible to transfer DAX and M formulas from Power BI desktop to files and to open them in Visual Studio Code, it is possible to compare two files. That’s extremely useful in many cases.
Have a look at this blog post about Power BI Sidetools and download it in the ‘Setup’ chapter : https://thebipower.fr/index.php/power-bi-sidetools/
Step 1 : Select files in Visual Studio Code explorer
In the explorer window, right click on a file
Then click on ‘Select for compare’
In the explorer window, right click on another file and click on ‘Compare with selected’
Step 2 : Compare files
Files are opened next to each other . You will notice differences are coloured. Plus or minus signs appear next to the line numbers. You can still modify files.
On the top right of VS Code window, two arrows allow you to navigate through differences
Comparing formulas can be really usefull and really easy using Visual Studio Code.
Watch this video from Code 2020 for few more tips :
Several Visual Studio Code extensions provide also compare tools.
You may check “Compare folders” from MoshFeu : https://marketplace.visualstudio.com/items?itemName=moshfeu.compare-folders
Please stay tuned to discover more functionalities coming soon. You may subscribe to be aware of new content clicking here.
With ‘Custom analyser’ feature, Power BI Sidetools users can use external tools built by the…
DAX debugger is meant to help Power BI report developers displaying sample data from a…
Since the Power BI team allowed to launch external tools from the Power BI desktop…
While working in Power BI desktop, we often need to export to Excel some data…
As Power BI Sidetools creates files from your report, you are able to search through…