When you try to create a calculated field on a live connection, the MEDIAN function is not available.
When connecting live to a database, then Tableau Desktop queries the database for any functions requested. This allows Tableau Desktop to take advantage of the performance of the database.
Not all databases have a built-in median function, thus Tableau Desktop is not able to send a query with median to these databases.
As a workaround, create an extract. For more information, see Extracting Data.
Depending on your scenario, using a WINDOW_MEDIAN Table Calculation might also resolve the issue. However please note that this table calculation only returns the median of the expression within the window. For more information about this topic, see WINDOW_MEDIAN in the Online Help.
To voice your support for the inclusion of this feature request in a future product release, add your vote to the following Salesforce Idea: Percentile function on LIVE connection.
You may also consider contacting support for the database in use to enter a feature request for the database itself to include the median function.
001473761

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.