cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to filter a dashboard by the current user email?

Moriondo
New Contributor III

Hello,

I would like to know if it is possible to filter a dashboard by the current user email?

For example, I have a table result of a group of people with the following columns: user_id, user_email, date, productivity. So with this table I create some views that show the productivity of each user and I want to create only one dashboard that any user can go and check theirs results. For this, I would need to filter the current user logged on Databricks to filter the dashboard and show only their result.

1 ACCEPTED SOLUTION

Accepted Solutions

Moriondo
New Contributor III

Hey guys,

After some research on the documentation, I found out that if a filter the query using the current_user() function, I will get the result that I was looking for.

If anyone need look at this:

https://docs.databricks.com/sql/language-manual/functions/current_user.html

View solution in original post

3 REPLIES 3

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi, Could you please try https://docs.databricks.com/sql/user/queries/query-filters.html#query-filters.

image 

Please let us know if this helps. Also, please tag @Debayan Mukherjeeโ€‹ with your next comment so that I will get notified. Thank you!

Anonymous
Not applicable

Hi @Luiz Felipe Moriondo Alves Filhoโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

Moriondo
New Contributor III

Hey guys,

After some research on the documentation, I found out that if a filter the query using the current_user() function, I will get the result that I was looking for.

If anyone need look at this:

https://docs.databricks.com/sql/language-manual/functions/current_user.html

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.