Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
The following SQL gives different answers when imported into PowerBI compared to running in a local Oracle server. Obvisouly I am pointing the PowerBI data source at the same local database - but why is it different?
Power BI treats the week as Mon-Sun but my local server treats it as Sun-Sat.
SELECT TO_NUMBER(TO_CHAR(SYSDATE,'D')) FROM DUAL
Please could someone explain why?
Solved! Go to Solution.
Hi @Anonymous,
Based on my research, in Oracle, you could use the NLS_TERRITORY parameter to set which day the week should start on. You can change it just for your session.
Best regards,
Yuliana Gu
Hi @Anonymous,
In my test, this query returns the same answer in Oracle and Power BI desktop.
Result in Oracle Result in Power BI desktop
Are you sure the Power BI desktop is hosted in the same server where installed Oracle server? What is your desktop version?
Regards,
Yuliana Gu
Thanks fo the reply @v-yulgu-msft
When I run this in my Oracle server I get the following (for Thursday today):
Could it be a setting on my Oracle server end defaulting to Monday as start date for week?
Thanks,
Ben
Hi @Anonymous,
Based on my research, in Oracle, you could use the NLS_TERRITORY parameter to set which day the week should start on. You can change it just for your session.
Best regards,
Yuliana Gu
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |