Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I have data for year 2022, 2023 and 2024 and the data size is too big, so i need to load the data in separate dataflow for each year.
For example, I use syntax Date.IsInCurrentYear([DATE]) to load 2024 data and Date.IsInPreviousYear([DATE]) for 2023 data.
What syntax should I use to load 2022 data?
Solved! Go to Solution.
pls try this
= Table.SelectRows( #"Sorted Rows", each Date.Year([DATE]) = Date.Year( Date.From( DateTime.LocalNow()))-2)