I'm working on project that has data warehouse implemented. The fact table has datetime stored in the format:
2015-01-31 23:10:49.4020000
Date Dimension has the dates included in the following format:
2015-01-01 00:00:00.000
Time Dimension is storing the time in the following format:
23:10:49 AM
Now, I have to make analysis using Tableau software, for which I need to join the two dimensions with the Fact table. I'm trying to create custom sql for creating a join, unfortunately I'm not able to do so.
Can anyone share how should I join the fact table with both the dimensions?
You are essentially looking for combining multiple tables using either Join Or Data Blending.
In tableau, you can combine data that exists across multiple tables or files by creating joins. Using joins to combine tables allows you to analyze data that have a relationship with each other.
Complete articles depicting all these steps can be found here
Connect to data and create your data source according to the examples in Connecting to Data Sources.
After you select the file, database, or schema, double-click or drag a table to the join area of the data source page.
In your case, You should go for these joins instead of Data blending. This is because, Data Blending does not create row level joins and is not a way to add new dimensions or rows to your data.
You can refer this article for more details