Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
72 | |
62 | |
51 | |
48 |
User | Count |
---|---|
206 | |
90 | |
62 | |
59 | |
57 |