Please check out the thread below, which I think will address your row formatting question
With regard to your other question, the answer I think will depend on what your data model looks like. If you could please post your PBIX file, that would allow us to provide a specific solution. If you have any confidential data in your file, here are some quick and easy techniques to use in power query to mask sensitive data: