Tableau Daily Notes
Tableau Daily Notes
🔹 📘 ➡ ➡ ➡
Tableau
Tools used before tableau:
Crystal Reports- formatting reports in-voice layout
Excel (Microsoft)-basic dashboards, tables, charts
Oracle Discoverer-reporting from oracleDB
IBM Cognos (till 2000)-reporting,scorecards,OLAP
.tds acts like template to connect with actual datasource , contain details like
instructions on how to connect to and access the data
Note: .tds files are no longer supported for Tableau versions beyond 2024.2. All
extracts are now in .hyper format.
Here’s a clear and practical list of Date Functions in Tableau, commonly used
for reporting, filtering, comparisons, and custom date logic.
2. NOW()
● Returns the current date and time.
● Example: NOW() → 2025-06-10 11:05:30 AM
3. DATEPART(part, date)
● Returns a number representing the part of the date.
● Example:
DATEPART('month', [Order Date]) → 6
DATEPART('weekday', [Order Date]) → 1–7
4. DATENAME(part, date)
● Returns the name (as text) of the part of a date.
● Example:
DATENAME('month', [Order Date]) → "June"
DATENAME('weekday', [Order Date]) → "Tuesday"
7. DATETRUNC(part, date)
● Truncates the date to the beginning of the specified part.
● Example:
DATETRUNC('year', [Order Date]) → 2025-01-01
DATETRUNC('month', TODAY()) → first day of current month
9. MAKEDATETIME(date, time)
● Creates a date and time value.
● Example:
MAKEDATETIME("2024-06-10", "14:00:00") → 2024-06-10 2:00 PM
10. ISDATE(string)
● Checks if a string is a valid date.
● Example: ISDATE("2024-01-01") → TRUE
buttons
. Performance at scale
○ Data warehouses are built to query billions of rows (structured &
semi-structured)
○ Data can be streamed in and out of warehouses multiple times
. Usage-based pricing
○ Pay only when you query, load, or unload.
○ Pay only for the resources used at that point in time
. Highly secure
○ Data warehouses are often HIPPA and GDPR compliant
○ Data can be masked as needed
○ Supports MFA (multi-factor authentication)
○ Data is encrypted during transport & rest
○ Access controls can go as granular as possible
. Data Marketplace
○ Data warehouses come with a marketplace which gives us access
to:
◆ Geospatial data: This data can be joined with production data
economy
● Characteristics:
○ High volume of small, short transactions.
decision-making.
● Characteristics:
○ Complex queries and data analysis on large datasets.
ETL (Extract, Transform, Load): This process extracts data from source
systems, transforms it into a consistent format, and loads it into the data
warehouse
Today’s most popular data warehouses are Snowflake, AWS Redshift, Google
BigQuery, and Azure Synapse Analytics.
Star Schema:
● Structure: A central fact table surrounded by dimension tables.
● Denormalized: Dimension tables are not further normalized.
● Simplicity: Easier to understand and query.
● Performance: Generally faster for simpler queries due to fewer joins.
● Use Cases: Ideal for simpler data analysis and BI reporting.
Snowflake Schema:
● Structure: A central fact table with dimension tables that can be
further normalized into sub-dimension tables.
redundancy.
● Use Cases: Suitable for complex datasets with many hierarchies and
when data consistency is crucial.
Fact Table:
● Purpose:
Stores quantitative data, often referred to as "facts" or "measures,"
that represent business events or processes.
● Contents:
Includes numerical metrics (e.g., sales amount, order quantity, profit),
and foreign keys that link to dimension tables.
● Example:
A sales fact table might include columns for order ID, product ID,
customer ID, order date, and sales amount.
●
Dimension Table:
● Purpose:
Stores descriptive attributes about the business context related to the
facts in the fact table.
● Contents:
Contains textual and categorical data (e.g., product names, customer
demographics, time periods), providing context for analysis.
● Example:
A dimension table for products might include columns for product ID,
product name, category, price, and supplier.
Key Differences:
● Data Type:
Fact tables primarily contain numerical data, while dimension tables
contain descriptive attributes.
● Relationship:
Fact tables and dimension tables are linked through foreign keys,
allowing for querying and analysis based on specific dimensions.
● Granularity:
Fact tables represent the lowest level of detail (grain) in the data, while
dimension tables provide various levels of aggregation and filtering.
Goal Benefit
Avoid data duplication Saves storage, prevents
inconsistency
Maintain data integrity Changes update in one place only
Make relationships clear Easier to enforce logical structure
Improve data accuracy Reduces update, insert, and delete
anomalies
Normal Form Rule Example Problem
Solved
1NF – First Normal No repeating groups No multiple phone
Form or arrays. Each cell = numbers in one field
one value.
2NF – Second Normal Meet 1NF + no partial Break fields that
Normal Form Rule Example Problem
Solved
1NF – First Normal No repeating groups No multiple phone
Form or arrays. Each cell = numbers in one field
one value.
2NF – Second Normal Meet 1NF + no partial Break fields that
Form dependency on depend only on part of
composite keys. a key
3NF – Third Normal Meet 2NF + no Separate fields that
Form transitive depend on other non-
dependencies (non- key fields
key → non-key).
Pros Cons
Eliminates duplication Complex queries (more joins)
Saves storage Slower for reporting/BI
Ensures consistency Can be harder for non-technical
users