Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi all,
I'm attempting to connect to a denodo database via SQL statement and I'm running into issue using the Dateadd function. When using the below statement "DOCPOSTINGDATE BETWEEN DATEADD(Month, -12, CURRENT_DATE) AND CURRENT_DATE" I recieve the following error:
DataSource.Error: ODBC: ERROR [ ] ERROR: Error in select view conditions: Field not found 'month' in view with schema
This SQL statement executes fine in other databases. Is there some other syntax that power BI expects?
Solved! Go to Solution.
Hi all,
I've solved my issue by consulting the help documentation around the database type my company is using, we're using a denodo solution and they use VQL for querying language which has slightly different syntax. In the end my query looked as below and now operates as expected:
DOCPOSTINGDATE >= ADDYEAR(CURRENT_DATE, -1)
Hi all,
I've solved my issue by consulting the help documentation around the database type my company is using, we're using a denodo solution and they use VQL for querying language which has slightly different syntax. In the end my query looked as below and now operates as expected:
DOCPOSTINGDATE >= ADDYEAR(CURRENT_DATE, -1)
@Anonymous ,
dateadd seems fine, but check -https://www.w3schools.com/sql/func_sqlserver_dateadd.asp
Try GETDATE() in place of CURRENT_DATE in case of SQL server
@Anonymous
The DATEADD function has the following format, you need to amend your formula accordingly
= DATEADD(DateTime[DateKey],-1,year)
check the article for more info.
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
Click on the Thumbs-Up icon on the right if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 64 | |
| 31 | |
| 26 | |
| 25 |