hayoni
New Contributor III

Hello, @1pedroosilva !

As others mentioned, there is no built-in setting for this yet. However, if you want a quick solution without changing anything in your dashboard or queries, here is a simple workaround.

Step1. Create a new bookmark in your browser.
Step2. Set the bookmark's URL to the following JavaScript snippet  (It's just a click event! 😅)

javascript: 
document.querySelectorAll('[data-component-id*=pivot-row-header-cell]').forEach(b=>b.click())

please make sure to replace ":" with a regular colon ":" in your bookmark URL

Once your dashboard loads, clicking this bookmark will instantly collapse the entire table. 

(Note: While this is a very unofficial workaround, I think it could be helpful until Databricks natively implements this feature...)

Hope this helps!