Forum Discussion
kstiegler
5 years agoAdvocate I
Set query parameter automatically by logged in user?
Is it possible to have Power Query automatically set the value of a query parameter based on the user account logged into Power BI Desktop? We have a report which references an Excel file on our inte...
lbendlin
5 years agoSuper User
A dataset refresh is independent of any "logged in" user (unless you use Direct Query which is not applicable in your scenario)
What you can do is import both sources into the dataset and then use RLS or other DAX rules to switch between them.
Note: Your file should reside on an internal file share, not on a PC drive. IE you should not have the absolute/relative path problem in the first place.