1. [Update: A fast solution has been posted
    http://vizdiff.blogspot.com/2015/07/replacing-data-source-fast-way.html
    ]

    In my work, after building a workbook based on a data source (a file or a database connection), I extract the data and publish the extract to the server as a data source. By replacing the original data source with the server instance, I find my viz broken.

    Actually this breaks everything. As far as I know, the broken pieces include:
    - color settings
    - aliases
    - formats
    - quick filters and their settings
    - sort orders
    - sets
    - parameters
    - groups
    - calculated fields
    plus je ne sais quoi.

    I am not alone. There are a lot of reports on the subject in the last 3 years:
    http://community.tableausoftware.com/thread/151396
    Yet a good and elegant solution is to be found.

    Here I am trying to analyse the cause, present some workaround and give the ultimate fix to this nagging problem.

    The Cause

    A viz or a visual app is composed of three main parts:
    - data source (the original data set)
    - meta data
    - rendering (graphing or charting)

    Data source and rendering are easy to understand. Then what is meta data or metadata?  There are formal and academic definition to it in Wikipedia. In our specific case, the metadata includes everything we manually add on top of the original data. See list above. Metadata could be composite data (such as calculated fields, sets, groups) or annotations (formatting, aliases, properties, colors). Metadata is the value added by us human data analysts. It is the basis for rendering. Simply put, we dream up a Viz, create metadata and instruct machine to do the rendering.

    When replacing the original data source, Tableau strangely takes away the metadata with it! Without the metadata, the viz is broken. That's why we need to rebuild all the metadata. How painful!

    The Workaround

    The workaround consists of two steps. Load the new data source first. Before replacing,
    1.Load every worksheet and dashboard by clicking each tab and view the rendering in integrity.
    This will preserve annotation part of the metadata: colors, aliases, formats, filter settings etc. See also
    http://community.tableausoftware.com/docs/DOC-5359
    http://kb.tableau.com/articles/Issue/quick-filters-change-to-multiple-values-list-after-replacing-data-source

    2.Copy over composite/derived metadata to the new data source.
    See more details in comments below. Hold your control key when copying. This saves you the effort of recreating groups, sets, calculated fields and parameters etc.

    After the above two steps, proceed to replace the data source by the new instance. It may or may not fix all your problems because I can't enumerate all the elements that might be broken. Inspect your viz carefully after the replacement.

    This should relieve a bit of your pain in migrating data sources. It is still quite painful nonetheless.

    The Ultimate Fix

    The ultimate fix can only come from Tableau the company. In its current product design,  they treat the metadata as part of the data source. That's why when replacing data source, the metadata is gone as well.

    In my opinion, the metadata is an integral part of the application and not part of the data source. The metadata must be preserved and retained. In this way, replacing data source won't affect the metadata. The metadata will be recreated automatically. The operation will be smooth without any additional human intervention. This is the kind of elegant solution I am expecting.

    This issue has accumulated enough votes in community ideas (such as this one) and bug reports so that it must be time to fix it. [Update: a new bug report is filed under case #01205225 ]
    13

    View comments

  2. In my recent design of the Khan Academy Viz, I came across an issue: The embedded Youtube video player in Tableau is not showing full screen button (only after published to the server). A video player without full screen is unthinkable and I need to find a solution.

    I was using a method proposed by Tableau's product marketing manager Ben Jones. The format proposed is as follows:
    http://youtube.com/embed/yx1S_o741kI

    After digging around, I found this note on Google. The solution is using "v" instead of "embed" in the embedded URL:
    http://youtube.com/v/yx1S_o741kI

    V will instruct the use of AC3 player while Embed will use HTML5 player.

    If you publish embeded Youtube videos using AC3 player, the full screen button will show. Why embedded HTML5 player does not show full screen button is beyond my comprehension.

    In passing, I found there is a bug in Tableau Desktop when dealing with AC3 player. To reproduce the bug, just download the Khan Academy viz, and click on any of the video titles and you will see something like the screenshot below. This only happens in desktop. The workaround is to close the web object and reenter the url. Do not click on any link though. When published to the server, the player works fine. I submitted a case report #01169202 to Tableau Software.




    0

    Add a comment

  3. Having the honor of serving for Khan Academy as the Mandarin/Chinese advocate on volunteer basis since 2011, I recently resigned because of getting busy with my current work. But I never cease to love the Academy. Here is a little effort to put all the videos in multiple languages into a simple box. All the non-English videos are translated by numerous volunteers and organizations around the world. Spanish leads the pack as the most translated. The translation has been work in progress. More volunteers are needed. To find out how to volunteer for Khan Academy, click here.

    There are in total 31000+ videos (all languages combined) in this box, as of January 2015! (See comments for latest update date) Note that, while the videos are dubbed in non-English languages, all the video descriptions are in English. I do not have the translated text.

    Feedback is welcome.


    Below are some stats on the Khan Academy videos:


    Following are few photos taken at Khan Academy in 2012-2013 and the book given to me by its founder Sal Khan:
    To see a video of the team members of the Chinese translators, follow this link.
    2

    View comments

Blog Archive
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.