cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
aravindh10 Regular Visitor
Regular Visitor

Parameter in sql query statement is not working

i  have a query where the docdate <'2018-01-01'

now i wanted to pass the date as perameter

i tried as text,date

i tried in the query statement  WHERE doc_date > '"&@docdate&"' 

it gives the error Conversion failed when converting date and/or time from character string.

 

.help me

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Parameter in sql query statement is not working

Hi @aravindh10 ,

 

Not sure if you'd like to specify the parameter in sql statement , you could probably try "&docdate&".

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Parameter in sql query statement is not working

Hi @aravindh10 ,

 

Not sure if you'd like to specify the parameter in sql statement , you could probably try "&docdate&".

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

Community Support Team
Community Support Team

Re: Parameter in sql query statement is not working

Hi @aravindh10 ,

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

Best regards,
Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors