Forum Discussion
How do you document your models?
- Anonymous10 years ago
My documentation style is pretty low tech as these things go. Nothing automated but it's easy enough.
I write most of my columns and measures out in Notepad++ and then copy it into Power BI. The advantages here are 1) you can format your code nicely without trouble and 2) your documentation is half-done already. Especially if you comment your code as you go.
Beyond that it's mostly a matter of organizing the code and documenting the queries. For the queries, open the advanced editor and copy all that code. You can later recreate any query instantly by pasting that back into a blank query*.
For the documentation itself, my preference is to organize by tables. A brief description of the data represented, the query, a list of the columns and their data types, then the custom columns in alphabetic order and the measures, same.
I tend to create master datasets and use them each for several different reports, so I tend not to document the reports themselves very extensively. I just keep a changelog of requests that I get about them, because everyone around here likes to change their minds about what charts they want to see. One changelog per report, starting with a note about which dataset it's coming from.
I've had to recreate one lost report so far. The original took about a week, the recovery took about three hours, and to be fair I was watching a movie while I did it.
*Assuming in some cases that you've already established a connection and credentials with the data source from the machine you're working at.
- 10 years ago
How to connect PBI to DAX Studio: http://exceleratorbi.com.au/getting-started-dax-studio/
incl. tons of other awesome stuff you can do with it!
How to connect PBI to DAX Studio: http://exceleratorbi.com.au/getting-started-dax-studio/
incl. tons of other awesome stuff you can do with it!
Awesome tool, thanks for the recommendation. Just installed it with ease. Trying to output my measures to Excel but I don't have that option, only Grid, Timer and File. Any idea how to activate output to Excel?
Also, is there any way to sort fields in data view of PBI? I have dozens of measures and the table seems to sort them in the order they were created not in alpha order. The measures are sorted in alpha order on the report view but not the data view which makes it very hard to find and edit measures when I have so many. Any suggestions?
- ImkeF10 years agoCommunity Champion
No, you have to export to file (txt) and then open it in Excel/Power Query.
And sorry, no idea about the sorting.