Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello everyone,
I have created a calculated column which filters the most recent months, in this particular example the last two months. This filter was working, but only in the year itself. Now we are in the new year, it shows only the month of this year, but it still want the months of 2021. So I want all the dates from 1 November till today (so the 4th of January).
The formula is as follows:
Solved! Go to Solution.
Thank you @amitchandak for your (fast) reply 🙂
The results I got were alle blanks, so I adjusted the formula as follows:
@Anonymous , better to use EOmonth to deal with months
check one of three should work
Last 2 months = IF(eomonth([Date],0)=eoMonth(Today(),-3)+1 && [Date] <=TODAY(), "Last 2 months", BLANK())
or
Last 2 months = IF(eomonth([Date],0)=eoMonth(Today(),-3)+1 && eomonth([Date],0) <=eomonth(TODAY(),0), "Last 2 months", BLANK())
or
Last 2 months = IF(eomonth([Date],0)=eoMonth(Today(),-3)+1 && eomonth([Date],0) <=eomonth(TODAY(),-1), "Last 2 months", BLANK())
Thank you @amitchandak for your (fast) reply 🙂
The results I got were alle blanks, so I adjusted the formula as follows:
User | Count |
---|---|
104 | |
92 | |
88 | |
78 | |
71 |
User | Count |
---|---|
113 | |
105 | |
101 | |
75 | |
64 |