There are three benefits of Power BI Variables.
1- Performance
2- Code simplification
3 - Usability and maintenance.
Furthermore, whenever you declare the variable, it execute with in the current filter context and when you use it after "return" keyword, you can not change it filter context and value. For complete courses, you can buy these courses from Udemy on discount using the following links
https://www.udemy.com/course/ssas-tab...
https://www.udemy.com/course/power-qu...
https://www.udemy.com/course/microsof...
https://www.udemy.com/course/power-bi...
https://www.udemy.com/course/learn-al...
Skillshare users can follow me on Skillshare for all the courses!
https://www.skillshare.com/r/profile/...