3
votes

I've created a Tableau workbook that is based off of a SQL query connecting to an Oracle Database. Let's pretend that the query has 2 fields, ID and Stock number. On the Data Source tab one row shows ID = 2040 and the Stock number = 47 but on Sheet 1, ID = 2040 shows a Stock number = 2040. The remote type of the Stock number field on the Data Source tab is "Fixed precision number" and on Sheet 1 it is "Double-precision floating-point number."

For a reason I do not understand the Stock number is equal to the ID for all rows of the data when looking at the data on Sheet 1 (or any other Sheet for that matter). This is incorrect when I look at the Data Source tab or if I use Oracle SQL Developer to run the query. Why and how is this happening in Tableau?

What I've already tried

  • Using the Stock number field as a Dimension and a Measure
  • Using "View Data" on Sheet 1 - It shows that the row where ID = 2040 also has a Stock number = 2040 instead of the correct value of 47
1
In the data source tab you must be looking at sample data of 100 rows. Try bringing the data source as is in the sheet one by pulling dimensions and measures into rows shelf and then sort them according to id and see if 2020 id appears only once.Abhishek Boorugu
Hi @AbhishekBoorugu, ID = 2040 only appears once. The data being shown in the Data Source tab is correct but when I go to Sheet 1 the data being shown is incorrect.2602
Are you using more than 1 datasource on the sheet?Armin
A lot of things causing this could most likely require a look at the workbook to solve. Is that an option?vizyourdata
Hi @Armin, no it's just 1 data source.2602

1 Answers

0
votes

My advice is to start a new workbook and take your query right back to basics. Only have a simple select statement and return a few rows.

Then build up from there. You want to get as simple as you can, with no column aliases if you can avoid it.

From there add more complexity to your query, one step at a time so you can pinpoint the exact moment when your query stops working.

I have seen Tableau get confused by data types before, so make sure you check all of the data types that Tableau suggests when you first build your data source. And update them as necessary.

If you can remove or even blur out any sensitive content and show us a picture that would help immenesly. Obviously a picture tells a thousand words.