I have a use case where I have two LookML view definitions: view1.view.lkml and view2.view.lkml. I need to create an explore that dynamically switches between view1 and view2 based on the user_attributes.first_name. For example, if user X accesses the explore, it should use view1, and if user Y accesses the explore, it should use view2.
Is dynamic selection of views possible in Looker? If yes, how can I achieve this?
I'm not sure if you can point to a different view based on user attributes, but what you can do for sure is point the SAME view to a different underlying TABLE based on user attributes, which might be useful for your use case? There is an example here based on the the fields in the query, but in principle you would just change that to user_attribute.name or whatever.