Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
MarkusEng1998
Resolver II
Resolver II

Filter API URL (400) Bad Request

https://AAA_WebServer/api/items/logs?$select=field,action,time,old_value,new_value,note,change_source,article_id,action_field,source_text,username_username,username_email,article_id_name,article_id_bim_id,article_id_number_name?filter=items\time gt '2021-06-30'

 

Is there anything in the syntax that looks wrong? the API URL works if I leave out the filter section.

 

btw. I also tried filter=items\time gt datetime''2021-06-30T00:00:00'

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

Yes.  Typically each parameter is separated by '&', and filter should be prefixed by $.

 

https://AAA_WebServer/api/items/logs?$select=field,action,time,old_value,new_value,note,change_source,article_id,action_field,source_text,username_username,username_email,article_id_name,article_id_bim_id,article_id_number_name&$filter=items\time gt '2021-06-30'

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi  @MarkusEng1998 ,

 

Try below format:

$filter=StartDate ge datetime'2014-01-01T00%3a00%3a00'

Check the reference below:

https://newbedev.com/rest-api-filter-by-start-and-end-dates-using-today

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Thank you @mahoneypat and @v-kelly-msft for your responses. The ampersand worked!

 

Cheers, I really appreciate this forum. I am learning so much.

mahoneypat
Microsoft Employee
Microsoft Employee

Yes.  Typically each parameter is separated by '&', and filter should be prefixed by $.

 

https://AAA_WebServer/api/items/logs?$select=field,action,time,old_value,new_value,note,change_source,article_id,action_field,source_text,username_username,username_email,article_id_name,article_id_bim_id,article_id_number_name&$filter=items\time gt '2021-06-30'

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.