Forum Discussion
Anders_G
Helper I
3 years agoFilter by same period last year (data import)
I connect to a data set that is very heavy, so I have to limit each data import to the previous 30 days. I do one data import for the previous 30 days this year using the standard date filters. ...
Anonymous
3 years agoNot applicable
Hi Anders_G ,
What data source you are connecting to? Please check if Power Query Parameter can help you achieve the requirement.
1. Handle with filtering when load the data
Include Parameters within Power BI to Query a SQL Data Source
(x as text, y as text)=>let
Source = Sql.Database("x", "y", [Query="select *#(lf)from z#(lf)WHERE [period_number]="&P2&"#(lf)AND [fiscal_year]="&P1&""])
in
Source
2. Filter the rows after the data loaded
Using Query Parameters in Filter Rows
Best Regards