Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |