How can i find used tables names in Tableau without using SQL Query? - sql

I am new to Tableau and don't want to mess the database. Is there a safe way to find out the table names from the dataset used to build a tableau dashboard?

Hard to say without seeing what you see but generally, the dimensions on the left panel are organized in a table hierarchy. In the image below you can see three tables. One has been expanded to show the fields (dimensions) used. The other two tables can be expanded by clicking on the >

Related

Tableau - How do I create multiple custom SQL from the same data source WITHOUT join?

I need to create a dashboard which showcases a number of charts coming from the same data source.
To have the different charts, I need to create multiple custom SQLs. However every time I do that tableau will prompt me to join the tables. I do not want to join the tables as the table will otherwise be too large.
Any help will be appreciated, thank you!
If the same columns are used for different charts but the number of records vary, then this could be done:
In the custom sql query create a column naming as Col_ws and update it with unique name. Repeat this for other worksheet logic and create a union in custom sql query itself. When it comes to tableau worksheet, use that Col_ws dimension as a context filter for different worksheets.
If the columns vary for different worksheets, above approach can't be taken. So have to create different custom sql queries (data sources) for different worksheets.
Let us know if this works!

Youtube Data Studio, how to create calculated fields from two different data sources (such as two BigQuery tables)

https://support.google.com/datastudio/answer/6390659
From the instruction video,"Create new calculated dimensions and metrics, which you can then use in your charts and controls", it shows how to create a calculated field from one data source.
But I need a calculated field that will be sum up of the values of fields from two different data sources (to be specific, two BigQuery tables).
I could not find anyway to do that. Except, I can create a BigQuery view sum up the value from two BigQuery tables in a BigQuery view. And then use this BigQuery View as my new data source. Not sure if this is the right and only way to do so.
Thanks for advices.
You cannot reference more than one data source to create a calculated field in Data Studio. Pushing the calculation down to SQL/BigQuery is the correct approach. At least, that's how we do it too.

store hierarchy information in a MS Access DB for faster queries

I'm trying to figure out how I can store hierarchical type information in a MS Access DB so that queries will be faster. An use case example might make more sense.
I have a table that has two fields
a name
a hierarchy
a hierarchy is an X # of level folder structure:
\a\b\c\d
\a\b\c\d\e
\a\b\c\d\f\g
\a\b\h
\a\b\i\j
you get the idea
the table will be filled with 300,000 rows
each row will have a name and a hierarchy
At this point:
if I want to find all the names that are in a hierarchy, including sub-hierarchies I can run a like query: where [hierarchy] like '\a\b\*'
I can even do wildcard joins even though MS Access's query design GUI doesn't handle it and I have to use the SQL view: join on [hierarchy] like '\a\b\*'.
But it can be very slow. Especially if my joins get complex.
So I thought maybe there is a way to create another table that would all the hierarchies and it would maintain parent/child relationships and the first table would reference a row in it. And then, somehow, I could use it to find rows in the first table that match hierarchies and sub-hierarchies in the second table.
However, I have no clue if this is even possible and how I would go about it. Any advice is appreciated.
In Oracle we use the hierarchal structure where each row has a reference to its parent. Then with the CONNECT BY clause you can connect these rows to each-other.
You should take a look here: simulation of connect-by in sql-server

Create a saved search using items that doesn't have any direct relationship in Netsuite

Is it possible to create a saved search that will show revenue, COG , deferred payment etc from sales order between items that doesnt have any direct relationship, they are from different tables. I have created an extensive search with quite a bit of formula for one table, now is it possible to join the tables in that saved search? Do I have to create searches for other tables (based on the previous one)? If so how do I combine multiple saved searches? is it through pivot tool? appreciate any pointer.
Thanks
Sam
Normally you can't cross-search on tables which have no 2nd degree connection. I usually do by pulling the whole tables via search, transforming the results into objects and matching data via JS.
Here are some tools I have:
https://github.com/pipechang/netsuite.toolbox/blob/master/toolbox.api.js
*note I change these from time to time so don't link directly.

How to handle many columns / variable schema?

I apologize in advance in case this question has been asked already.
I'm working on revamping a reporting application used within my company. The requirements are:
Support addition of new fields (done through web app) and allow users to select those fields when building reports. Currently there are 300 of these, and right now their values are stored in a single SQL Server table with 300 columns. Users have to be able to select these new fields in report builder. In other words, the schema is dynamic.
Improve report generation performance.
My thought process was to split up these 300 (and potentially more) columns into multiple tables (normalization), but I'm not sure that's the right approach given there doesn't seem to be a logical way of grouping data without ending up with 20+ tables.
Another option would be to store values in rows (key, attribute, attribute-value) then do a pivot, but I'm not sure that would perform well. This option would handle the dynamic schema nicely, but the pivot statements would have to be built programmatically before a user can consume data (views).
Thanks!