Forum Discussion
Charu
Post Patron
8 years agoDisplay user image in table visual and card visual
Hi Everyone,
I'm using Direct query mode and Oracle DB.
In card visual, I'm using a measure for greeting that is Hi Charu Good Morning.
In front of Hi Charu Good Morning, I want to display my picture.
based on user login their picture should come dynamically.
Help me which visual will work for this scenario.
Thanks in advance
3 Replies
- v-juanli-msft
Community Support
Hi We can use USERNAME () function with Row Level Security (RLS) with Power BI to get the dynamic image when users login. we have created a Power BI Desktop file and published it to Power BI Online service account. First, in Power BI Desktop file, you need a table with columns of username and image URL. Then transform a url on image, you only need to select the column and select Modelling>Data Category>Image URL Second, configure RLS in Power BI with USERNAME () function, follow steps as this(https://docs.microsoft.com/en-us/power-bi/desktop-rls) USERNAME() is used to get the current logged in user and filter the data accordingly so as to enable him to view his own data. Third, publish the file to Service and in Service configure RLS, see more details here.(https://docs.microsoft.com/en-us/power-bi/service-admin-rls) Finally when person named dale logs in with his Power BI account, he will only be able to view his own image. Best Regards Maggie- Charu
Post Patron
I copied the URL of an image from google and stored in my table
and in power bi, data category settings changed the column as Image URL
but here is the result