marclelijveld / External-Tools-Model-Documentation

This repository includes everything that is needed in order to run the External Tools capability in Power BI Desktop and generate Model Documentation.
https://data-marc.com/model-documenter/
MIT License
110 stars 42 forks source link

Suggestion to keep measure nicely formatted #24

Closed fuglphoenix closed 2 years ago

fuglphoenix commented 2 years ago

Power BI removes tailing/leading spaces automatically when displaying in a table visual. this is annoying if you have formatted your DAX code to be easy to read. to avoid this, you can replace spaces with another UTF-8 symbol space separator like this: --> <-- (the gap between the arrows looks like a space but is another unicode charater discribede here:

= Table.ReplaceValue(#"Changed Type"," "," ",Replacer.ReplaceText,{"Measure Expression"})

marclelijveld commented 2 years ago

Hi @fuglphoenix Thanks for bringing this up! I will investigate this for the next version! --In the mean time, feel free to enhance the model documenter template report, and open a pull request if you already fixed it!

Thanks~!