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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
blynn
Helper I
Helper I

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
Super User

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
Super User

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors