Play with details inside the a custom SQL inquire

  • 0

Play with details inside the a custom SQL inquire

Play with details inside the a custom SQL inquire

You need the second customized SQL ask locate a good confidence just how many commands and you will manage a left sign up to the Instructions and you will Providers dining tables:

Problems Arlington escort service whenever content articles is referenced

If for example the personalized SQL ask sources duplicate columns, you can acquire mistakes when trying to utilize one of the articles on the analysis in the Tableau. This may happen even when the query holds true. Including, look at the pursuing the query:

This new ask is true, although au_id industry is actually uncertain because the in this situation they is present for the both “authors” dining table and “titleauthor” dining table. Tableau commonly connect with the newest query but you’ll get an error anytime you just be sure to utilize the au_id career. For the reason that Tableau doesn’t learn which table you’re it comes down so you can.

Note: It’s a best behavior to help you establish column aliases having a keen Just like the term whenever you can inside the a custom SQL Inquire. It is because for each and every databases has its own regulations whether or not it concerns automatically generating a line label if in case a keen alias try not used.

Modify a personalized SQL query

  1. Toward databases page, throughout the fabric, double-click on the custom SQL query on the analytical level.
  2. Hover along side custom SQL desk in the real layer up to the arrow displays.
  3. Click on the arrow and discover Edit Custom SQL Ask .
  4. Throughout the dialogue container, revise this new personalized SQL ask.

When you drag a personalized SQL inquire with the logical layer of your own material, Tableau offers they a default identity: Customized SQL Ask, Custom SQL Query1, and stuff like that. You could replace the default term so you can some thing even more important.

Toward data source page, throughout the logical level of your own canvas, select the shed-off arrow in the customized SQL inquire dining table and select Rename .

You can make use of details in the a custom made SQL ask declaration to help you exchange a constant well worth with a working well worth. Then you can inform the brand new factor regarding the workbook to change the relationship. Such as, you may want to connect to a custom SQL query that provides online site visitors investigation having a specific web page which is given because of the an excellent pageID. As opposed to using a constant really worth toward pageID really worth from inside the the SQL inquire, you might input a parameter. Following immediately following doing the relationship, you might reveal a factor manage on workbook. Utilize the factor manage to switch out of the pageID and you will remove from inside the investigation for each webpage of great interest without having to edit otherwise backup the connection.

During the Tableau Desktop computer, you can create a parameter straight from the new Individualized SQL dialogue field or play with people details which might be the main workbook. If you manage a new parameter, it gets designed for include in the newest workbook as with any almost every other parameter. Get a hold of Manage Details to find out more.

Having internet currently talking about (during the Tableau Online or Tableau Server), you should use an existing factor blogged regarding Tableau Desktop computer. You simply cannot perform yet another parameter when you look at the online currently talking about.

  1. To your repository web page, about fabric, hover along side table before modify icon screens, and then click the new revise option.
  2. At the bottom of the dialog box, click Insert Parameter .
  3. Select a reliable worthy of on the SQL statement after which, regarding the Enter Factor drop-down diet plan select the factor we would like to fool around with as an alternative. If you have maybe not composed a factor but really, discover Do a separate factor . Follow the recommendations for the Perform Details to help make a factor.

About example below, the new individualized SQL query returns every purchases that are designated just like the Urgent consideration. On customized SQL report, your order consideration ‘s the ongoing well worth. When you need to alter the link with understand the Higher priority sales, you would have to change the content supply.


Paskibra SMAN 99 - Do The Best, Be The Best, No Regret!

%d blogger menyukai ini: