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.
Hello fellow PBI users,
I try to create a subquery to use further down in my code:
WITH TODAY AS(
SELECT
TO_CHAR(SYSDATE, 'MM-DD-YYYY') "NOW"
FROM DUAL)
So, if you do SELECT * FROM TODAY, you should get a table with Col name "NOW" and value 12-07-2022 as characters (need that to parse in later subqueries)
However, I get this error: "Expression.SyntaxError: Token Comma expected."
The code runs fine in Toad.As shown in PBI
Solved! Go to Solution.
Hi @Thoringer
Please remove the quote around "NOW".
SELECT
TO_CHAR(SYSDATE, 'MM-DD-YYYY') AS NOW
FROM
dual
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Wow! That was simple! I tried all kinds of acrobatics, but the removal of the qutation marks does work! Thank you a lot!
Hi @Thoringer
Please remove the quote around "NOW".
SELECT
TO_CHAR(SYSDATE, 'MM-DD-YYYY') AS NOW
FROM
dual
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
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 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |