Additional SQL Server features and topics not covered by specific categories
Short answer: It depends.
Longer answer: It is almost impossible to answer, because, yes, it depends. On a number of things, including your own skills. Myself, I would absolute do the analysis in SQL Server, but I can count myself as expert in SQL Server and T-SQL. On the other hand, I can only do rudimentary stuff in Excel, and I don't know PowerBI. I would expect someone who is well versed in PowerBI, but struggle to write T-SQL queries would say the opposite.
You may want to ask the same question in https://community.powerbi.com/t5/Forums/ct-p/PBI_Comm_Forums to see what these people say. After all, since many there also master SQL, they be better position to give you an informed answer.