cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
blynn
Frequent Visitor

limiting the Rows return based on Desktop or Service

We have a query that returns back a few years. when run locally int he dekstop version, the delay isn't too long. However, when the report is published, as the data passed through the gateway, there is a delay. I was curious if there was a way to detect its the published report and return like the last 2 years, instead of the last 10 years. Or, set a row like like 10,000.

1 ACCEPTED SOLUTION
GilbertQ
Super User II
Super User II

Hi there What you could do is to use the Parameters feature, which you could then use the parameter as a part of the query. Once you upload this to the Power BI Service, you could then modify the parameter in the Power BI Service and the next time the dataset gets refreshed it will then use the parameter. Here is some additional details below. https://docs.microsoft.com/is-is/power-bi/service-parameters https://www.fourmoo.com/2018/03/27/using-the-power-bi-service-parameters-to-change-connection-string...




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

Proud to be a Super User!







Power BI Blog

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @blynn

If you use import data when connecting to data source, you could take GilbertQ's advice.

with power bi parameter, you could limit rows as you expected. 

addtionally, you could refer to these articles

POWER BI DESKTOP QUERY PARAMETERS, PART 3, LIST OUTPUT

Data-Driven Power BI Desktop Parameters Using List Queries

Using Parameters in Power BI

 

Or if it doesn't suit your scenario, you could consider premium license which supports incremental refresh.

https://powerbi.microsoft.com/en-us/blog/incremental-refresh-in-power-bi-premium/

 

Best Regards

Maggie

 

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

GilbertQ
Super User II
Super User II

Hi there What you could do is to use the Parameters feature, which you could then use the parameter as a part of the query. Once you upload this to the Power BI Service, you could then modify the parameter in the Power BI Service and the next time the dataset gets refreshed it will then use the parameter. Here is some additional details below. https://docs.microsoft.com/is-is/power-bi/service-parameters https://www.fourmoo.com/2018/03/27/using-the-power-bi-service-parameters-to-change-connection-string...




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

Proud to be a Super User!







Power BI Blog

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!