Forum Discussion
Direct Query error: DirectQuery may not be used with this data source
Hi,
i didnt do any transformation directly to the table.
I just created some measures to achieve below objective:
i have a navigation menu:
1. summary
2. details
3. admin
role admin can be navigate by admin only. Hence, following below article,
https://www.linkedin.com/pulse/enable-disable-button-specific-users-powerbi-keith-fernandes/
i created some measures to detect what is the user role, and then configure the actions when they click on the navigation menu.
it works fine when i test in desktop but when i save and re-open, that error occur. i noticed that i have to wait for some time and then choose Optimize -->Refresh visuals then only it would work.
but the same error will happen when i publish it and i dont think my client is willing to wait just to navigate to page.
i hope any one can chip in any idea on this.or maybe other workaround i can try to achieve the objective apart from article shared?
Hey, try to use RLS as an alternative approach.
refer: https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery