Forum Discussion
Sipra1
7 months agoRegular Visitor
Filter rows
Basically I have a table which has data according to financial years which is from September to August. So for example calendar year 2025 September will be Financial year 2026 september. I...
- 7 months ago
To filter out the current month, you need to use the Advanced Editor with a line like:
#"Remove Current Month" = Table.SelectRows(#"Previous Step", each [Dates] < Date.StartOfMonth(Date.From(DateTime.LocalNow())))Replace #"Previous Step" with the obvious.
You could also add a Choose Rows step from the UI, and, in the formula bar, edit what you see to show the above selection criteria.
Here is an example, including creating a column of dates spanning several years, that will return only the rows with months in the current fiscal year excepting the current month:
let fyStart=[a=Date.From(DateTime.FixedLocalNow()), b=Date.Month(a), c=Date.Year(a), d=if b < 9 then #date(c-1,9,1) else #date(c,9,1)][d], //Create table with date column over several fiscal years Source = #table(type table[Date=date],List.Accumulate({1..36},{}, (s,c)=>s & {{Date.AddMonths(#date(2023,1,1),c)}})), //Select current fiscal year except current month #"Current FY" = Table.SelectRows(Source, each [Date]>=fyStart and [Date] < Date.StartOfMonth(Date.From(DateTime.FixedLocalNow()))) in #"Current FY"Source Table:
Results:
V-yubandi-msft
6 months agoCommunity Support
Hi Sipra1 ,
Could you please let us know whether your issue has been resolved, or if you are still facing any issues. If you need any additional details or clarification, please feel free to let us know.
Thanks.
Sipra1
6 months agoRegular Visitor
Hey, issue is now resolved.