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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Can I prefilter Business Central OData?

Hello everyone,

 

I have a GL Entry table exposed as a web service in Business Central.

In my Power BI Report I'm getting all the data in the report, my issue is that I'm getting all the data ( 600k+ reports), I want to filter it to an interval of 10 days.

From what I know, if I set a normal filter in Power Query the Power BI will still get all the data and after that will filter the rows.

I want to prefilter it to get only the rows between those 2 dates.

Laurentiu_0-1624469414687.png

This is what I want to add but I'm not sure how/where.

?$filter=Posting_Date ge 2021-02-10 and Posting_Date lt 2021-02-21

 

An alternative to this is to create a query that gets those rows and then publish it in the web services page in Business Central but that's not a solution unfortunately 😞 .

 

Thank you for the time spent here and have a great day!

 

2 ACCEPTED SOLUTIONS
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try to use the OData Feed connector to prefilter data. 

 

And for how to create a OData URL, please refer to: 

Prefilter data for Power BI with OData URLs 

Using Filter Expressions in OData URIs 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Anonymous
Not applicable

Hello,

 

Sorry for not replying, I've managed to solve the issue, I only needed to add the filter right after the data source in the advanced editor, in that way Power Query folded the query back to the data source and only what I needed was retrieved.

Thank you for your time and wish you have an awesome day!

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

Anonymous
Not applicable

Hello,

 

Sorry for not replying, I've managed to solve the issue, I only needed to add the filter right after the data source in the advanced editor, in that way Power Query folded the query back to the data source and only what I needed was retrieved.

Thank you for your time and wish you have an awesome day!

v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try to use the OData Feed connector to prefilter data. 

 

And for how to create a OData URL, please refer to: 

Prefilter data for Power BI with OData URLs 

Using Filter Expressions in OData URIs 

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.