cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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
Databricks Employee
Databricks Employee

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group