Steps to Reproduce
1. Create an Oracle table with a DATE column.
2. Insert sample dates (for example, from 19-Nov-2025 to 28-Nov-2025) and commit the data.
3. Run a Custom SQL query using:
SELECT date_column, TO_CHAR(date_column, 'D') AS weekday_num FROM table_name;
4. With NLS_TERRITORY = 'AMERICA', observe weekday values such as:
Sunday = 7
Monday = 1
Tuesday = 2
5. Change the Oracle session setting:
ALTER SESSION SET NLS_TERRITORY = 'SWITZERLAND';
6. Re-run the same query and observe different weekday values for the same dates (for example, Sunday = 6, Monday = 7, Tuesday = 1).
7. Create a Tableau workbook using this Custom SQL and verify that weekday-based logic reflects these differences.
Set the territory via Initial SQL to ensure the correct value is retrieved or use Custom SQL to ensure the correct value is retrieved or adjust the values via calculated fields if using Date Functions.
005389419

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.