Hey guys,
As the title suggests, I have a big set of data ranging from the last 2 years until today for everyday. I need to filter out only the first and last date of each month of these dates from last two years to reflect on my report. What would be the best way to achieve this?
Thank you and kind regards
Solved! Go to Solution.
Hi @p1nkman
If you want to keep only the first and last date of each month in your data table, you can use Power Query Editor to filter the rows. Insert a step after the last step and paste below M code into the formula bar. Replace "previous step name" with the last step's name.
= Table.SelectRows(#"previous step name", each [Date] = Date.StartOfMonth([Date]) or [Date] = Date.EndOfMonth([Date]))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @p1nkman
If you want to keep only the first and last date of each month in your data table, you can use Power Query Editor to filter the rows. Insert a step after the last step and paste below M code into the formula bar. Replace "previous step name" with the last step's name.
= Table.SelectRows(#"previous step name", each [Date] = Date.StartOfMonth([Date]) or [Date] = Date.EndOfMonth([Date]))
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.
Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!
Join the biggest FREE Business Applications Event in LATAM this February.
User | Count |
---|---|
217 | |
57 | |
49 | |
46 | |
45 |
User | Count |
---|---|
268 | |
211 | |
113 | |
82 | |
71 |