cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
blynn Frequent Visitor
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

Accepted Solutions
Super User
Super User

Re: limiting the Rows return based on Desktop or Service

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 Datanaut!"
2 REPLIES 2
Super User
Super User

Re: limiting the Rows return based on Desktop or Service

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 Datanaut!"
Community Support Team
Community Support Team

Re: limiting the Rows return based on Desktop or Service

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.