tableau / extension-data-driven-parameters

Automatically update your parameters based on your data!
https://tableau.github.io/extension-data-driven-parameters/
MIT License
18 stars 18 forks source link

Ability to trigger the parameter update(s) before any data refreshes #69

Closed geoff-bbc closed 4 years ago

geoff-bbc commented 4 years ago

Hi KeshiaRose,

Thanks for your work on this extension! I know the community has been asking for quite a while about "Latest Date" filters. I appreciate that it was delivered in the core application for Discrete Dates but we've been waiting for the same abilities in Date Ranges. I recently found your extension and have been making it work for one of my clients.

Background:

Proposed Enhancement:

Possible? Thanks in advance.

KeshiaRose commented 4 years ago

Hi @geoff-bbc,

Thanks for the feedback, it's always interesting for me to hear how folks are using extensions! πŸ˜ƒ

Unfortunately, this is something that comes from the way extensions work as a whole and is not specific to this extension. Currently, all extensions get loaded after the dashboard. This is because the extension needs to look at the dashboard for the data it uses. This means however that you end up with double-loading a dashboard if the extension makes updates immediately.

One idea you could do as a workaround is to set the parameters to something that does not return any data so the first load is faster and less noticeable. However, this isn't something I can fix from within the extension. 😞

On the bright side, this is a feature that is slated to be added in-product in 2020.1! Check out the beta to try it out!

Take care, Keshia

geoff-bbc commented 4 years ago

Hi @KeshiaRose,

I was excited to hear this would be supported in 2020.1, sorry I forgot to reply as such!

I just installed 2020.1 and am looking to accomplish what I described in this issue. I've followed ALL of the documentation I can find, but I seem to be missing something.

I have created a calculated field with formula: MAX([Tradedate]) but that field is not showing up as a choice for 'Value When Workbook Opens'. I've checked data types - they're both Date. The updated documentation seems to emphasize single-value, view-independent calculation but when I search the KB for that phrase there aren't any other definitions.

Were you involved in the new feature planning or testing? Do you know what I'm missing here?

Thanks, Geoff

KeshiaRose commented 4 years ago

Hi @geoff-bbc,

You are so close! The key here is "view-independent calculation". Aggregate calculations change their results depending on what dimensions are on the detail of the view. You will need to use a calculation that returns the same value no matter what. That can either be a row-level calculation/field or in your case, an LOD calculation: {MAX([Tradedate])} πŸ˜‰

Take care, Keshia

geoff-bbc commented 4 years ago

Worked like a charm! Thanks for your help Keshia! ❀️

geoff-bbc commented 4 years ago

Hi @KeshiaRose,

I don't want to misuse this thread. Is there an official channel for posting potential bugs with the new release?

My situation is that I have implemented the 'Value When Workbook Opens' parameter feature as discussed here. It works as expected when I open a workbook in Tableau Desktop. When I open the same dashboard as a view in Tableau Online the date is not reliably updating. I am Ctrl-clicking the refresh button in Chrome which should force a non-cached refresh, which is more than I can likely expect from my end users, and even though I know I have data from 2/29 for example, the parameter remains incorrectly set to 2/28. This client of mine is on https://eu-west-1a.online.tableau.com/. Are all the Tableau Online nodes ready to support 2020.1?

Thanks, Geoff

KeshiaRose commented 4 years ago

Hi @geoff-bbc,

All Tableau Online pods always get the upgrades before we release Desktop, you can confirm the version by going to the question mark in the top right and selecting "About Tableau Online". That being said it must be something else. Can you try making a simple test workbook with the superstore data set and seeing if that works? As far as the best place to put this, if it still doesn't work with just a simple sample I would reach out to support here: https://www.tableau.com/support/case

Take care, Keshia