Explore details within the a custom SQL inquire

Explore details within the a custom SQL inquire

You can use next custom SQL query to acquire an excellent depend on what amount of commands and you can create a left signup on the Orders and Suppliers tables:

Errors whenever copy columns are referenced

In the event the individualized SQL query recommendations copy articles, you may get errors of trying to use one of the articles on your research during the Tableau. This can happens even when the inquire is valid. Such, think about the following inquire:

The new inquire holds true, nevertheless the bien au_id profession is confusing as the in this case it is obtainable when you look at the the “authors” desk and https://datingranking.net/escort-directory/clovis/ also the “titleauthor” desk. Tableau tend to relate solely to the newest query but you’ll get an mistake anytime you you will need to use the bien au_id community. It is because Tableau doesn’t see which desk you are referring so you’re able to.

Note: It’s a just habit in order to explain line aliases having an Given that term as much as possible during the a customized SQL Ask. The reason being for every databases features its own regulations whether it pertains to instantly producing a line identity while an alias are maybe not made use of.

Change a personalized SQL inquire

  1. With the databases web page, from the canvas, double-click on the custom SQL query about logical layer.
  2. Hover along side individualized SQL dining table from the real coating until brand new arrow screens.
  3. Click the arrow and then find Revise Personalized SQL Ask .
  4. Throughout the dialog box, revise the newest custom SQL ask.

Once you pull a custom made SQL query on logical coating of the canvas, Tableau brings they a default name: Individualized SQL Query, Individualized SQL Query1, etc. You could replace the standard title so you’re able to one thing a great deal more significant.

On the repository page, on logical layer of one’s fabric, discover the miss-off arrow throughout the personalized SQL query table and select Rename .

You can utilize parameters within the a customized SQL inquire report in order to change a constant value with an energetic worth. Then you’re able to posting the brand new parameter in the workbook to change the partnership. Like, you may want to relate with a personalized SQL inquire that provides online visitors data to own a particular web page which is specified from the good pageID. Unlike playing with a steady value for the pageID value from inside the the fresh new SQL ask, you might insert a parameter. Then immediately following doing the relationship, you could let you know a factor control about workbook. Use the factor control to alter from the pageID and remove into the investigation for every single webpage interesting without the need to change otherwise copy the connection.

In Tableau Desktop, you can create a factor straight from the latest Customized SQL dialogue package otherwise use any variables that are the main workbook. For folks who carry out a new parameter, it will become available for include in the fresh workbook as with any almost every other parameter. Come across Create Parameters to find out more.

For websites authoring (in Tableau On line otherwise Tableau Machine), you can use a current parameter typed off Tableau Desktop. You simply cannot perform another factor inside web currently talking about.

  1. With the databases web page, on fabric, hover along the dining table through to the edit symbol screens, and click the fresh new change option.
  2. At the bottom of your own dialogue package, mouse click Enter Factor .
  3. Get a hold of a steady really worth from the SQL statement and, regarding the Submit Parameter get rid of-down menu discover the factor we should have fun with alternatively. When you have not created a factor but really, find Manage a new parameter . Follow the recommendations during the Do Details which will make a factor.

Throughout the example less than, the brand new personalized SQL query efficiency every requests that are designated because Urgent priority. About customized SQL declaration, your order priority is the constant worthy of. If you’d like to replace the link with understand the Highest priority sales, you would have to edit the data source.

0 پاسخ

دیدگاه خود را ثبت کنید

Want to join the discussion?
Feel free to contribute!

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *