It should work. Check Tutorial: Dynamic row level security with Analysis services tabular model
Just note that there are a few considerations to keep in mind when working with row level security, SSAS and Power BI.
On-premise row level security with Power BI is only available with Live Connection.
Any changes in the data after processing the model would be immediately available for the users who are accessing the report is based on live connection from the Power BI service.