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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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  @Anonymous ,

 

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!

Anonymous
Not applicable

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 and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors