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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
suvechha
Helper IV
Helper IV

Is there any way I can edit the power query and make the Year > 2018 in power bi report service ?

Hi there ,

I have a ms sql server db connection to the one specific view with Year > 2020 . But I want to 2 more years i.e from 2018.

But with my Power BI Desktop power query its going out of memory . 

 

I have created on-premise data gateways in power bi report service.

 

Is there any way I can edit the power query and make the Year > 2018 in power bi report service ?

 

Thanks

2 REPLIES 2
Anonymous
Not applicable

Hi @suvechha,

If you are working with SQL data connector and common SQL table, you can add a custom t-SQL query in advanced option -> SQL statement to get filtered records.

Power Query SQL Server connector - Power Query | Microsoft Docs
If you are working with a view that includes a specific filter effect applied on the database side, I don't think you can do custom form power bi side to ignore the original effect and apply new filter effects. (power bi does not include write back features)

Regards,
Xiaoxin Sheng

Shahfaisal
Solution Sage
Solution Sage

If you have the required permissions, you can write a query and use it in Power Query. However, if you are using a view that has a filter on year > 2020, you won't be able to change that logic in Power Query as the data is already filtered at the database level. 

Try writing a sql script with your own filters and then use it in Power BI Desktop (Power Query).

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors