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
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

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!