Compare Listings

Explore details from inside the a custom made SQL query

Explore details from inside the a custom made SQL query

You can make use of the second individualized SQL ask to acquire good confidence the amount of sales and you may perform a remaining join for the Orders and you will Vendors dining tables:

Mistakes when backup articles is actually referenced

When your individualized SQL inquire recommendations backup columns, you can aquire problems of trying to utilize one of the articles in your study inside Tableau. This will happens even if the inquire holds true Baton Rouge escort reviews. Such as, think about the following inquire:

The fresh ask is valid, however the au_id career is actually unclear as the in cases like this they is obtainable inside the both “authors” desk together with “titleauthor” dining table. Tableau commonly connect to the new ask but you’ll get an error whenever you try to utilize the au_id field. The reason being Tableau does not know hence dining table you’re referring to.

Note: It is a sole behavior so you’re able to identify line aliases which have an Once the clause whenever you can during the a customized SQL Ask. This is because for each and every database possesses its own legislation whether or not it involves instantly producing a line title just in case a keen alias are perhaps not utilized.

Modify a custom SQL ask

  1. Towards data source web page, on fabric, double-click on the personalized SQL inquire from the logical layer.
  2. Hover along the customized SQL desk about physical coating until the new arrow screens.
  3. Click on the arrow right after which discover Edit Custom SQL Query .
  4. Regarding dialog package, edit this new customized SQL query.

After you pull a custom SQL inquire into logical level of your fabric, Tableau gives they a default term: Individualized SQL Query, Individualized SQL Query1, and stuff like that. You could alter the default title to one thing so much more meaningful.

Towards the databases page, on logical layer of your fabric, discover the shed-off arrow throughout the customized SQL query dining table and select Rename .

You can use variables from inside the a customized SQL query declaration in order to exchange a steady worth that have an active value. Then you can posting the fresh parameter in the workbook to change the connection. For example, you’ll be able to get in touch with a personalized SQL query that provides websites customers study to possess a certain page which is given of the good pageID. In place of having fun with a stable really worth on pageID really worth for the new SQL ask, you could enter a factor. Then after doing the relationship, you could inform you a parameter control on the workbook. Use the factor handle to switch the actual pageID and you can pull when you look at the studies for every web page interesting without the need to change otherwise content the relationship.

During the Tableau Pc, you can create a factor straight from this new Custom SQL dialog container or explore people parameters that are the main workbook. For individuals who manage a unique factor, it will become designed for include in the newest workbook as with any almost every other parameter. Look for Manage Details to find out more.

To possess internet authoring (into the Tableau On line otherwise Tableau Machine), you should use a current parameter wrote away from Tableau Desktop computer. You simply cannot do a new factor when you look at the internet authoring.

  1. Into data source webpage, in the fabric, hover across the desk until the edit icon displays, and click the fresh edit button.
  2. In the bottom of one’s dialog container, simply click Submit Factor .
  3. Find a constant really worth on SQL declaration and, throughout the Input Factor get rid of-down eating plan discover the parameter you want to have fun with alternatively. When you have maybe not composed a factor yet, find Would yet another parameter . Proceed with the instructions when you look at the Perform Variables to create a factor.

On the analogy lower than, new customized SQL query productivity all of the requests that are marked as Urgent top priority. On individualized SQL report, the order consideration is the lingering really worth. Should you want to alter the link with comprehend the Higher top priority purchases, you would need to change the data supply.

img

admin

Join The Discussion