Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
DS14
Partner - Contributor III
Partner - Contributor III

Loading data from a specific date onwards

I have the date field Billing Date in sales table and I have to load data from 1-07-2017.

I tried by using where  Billing Date >= '1-07-2017' and also  Date(Billing Date,'DD-MM-YYYY') >= '1-07-2017'.

But its not working.

BillingDate
02-04-2016
03-04-2016
04-04-2016
05-04-2016
06-04-2017
07-04-2017
08-04-2018
09-04-2018
10-01-2019

 

Please guide how to achieve this.

Thanks in advance.

Labels (3)
1 Solution

Accepted Solutions
DS14
Partner - Contributor III
Partner - Contributor III
Author

I solved it. It was a format issue due to which I was struggling.
The solution is
where Date(BillingDate,'DD/MM/YYYY') >= '1/07/2017'

Thanks everyone for quick res-ponce and support.

View solution in original post

4 Replies
pradosh_thakur
Master II
Master II

Hi

Plese change this in your script if your BillinDate is in string format first
date(Date#(BillingDate,'DD-MM-YYYY')) AS BillingDate

then apply where condition to filter the data as the date can be used else where too.
Learning never stops.
pradosh_thakur
Master II
Master II

Again

where Date#(Billing Date,'DD-MM-YYYY') >= Date#(Billing Date,'1-07-2017') will even do even if you dont change the format in the first place.
Learning never stops.
tresesco
MVP
MVP

This is probably date format issue. You need to correct few things and try like:

where Date#(BillingDate,'DD-MM-YYYY') >= Date#('1-07-2017','DD-MM-YYYY') 
DS14
Partner - Contributor III
Partner - Contributor III
Author

I solved it. It was a format issue due to which I was struggling.
The solution is
where Date(BillingDate,'DD/MM/YYYY') >= '1/07/2017'

Thanks everyone for quick res-ponce and support.