March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
hello,
i was wondering if anyone knows a formula to always get the 02nd day of the current month...
that would be 11/02/22 and when deember comes then it would change to 12/02/22
thank you
Solved! Go to Solution.
2nd of Month = EOMONTH( TODAY(), -1) + 2
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
2nd of Month adjusted =
IF(
DAY(TODAY())>10,
EOMONTH(TODAY(),0)+2,
EOMONTH(TODAY(),-1)+2
)
Kudos @AllisonKennedy : I dod not know the EOMONTH() function. Thank you!
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
2nd of Month = EOMONTH( TODAY(), -1) + 2
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
thank you @AllisonKennedy that worked but i was wonderning and i should have said it before if:
- if today is more than the 10th of this month then to bring the 02nd of the next month otherwise the 02nd of this month...
let me know pls.
2nd of Month adjusted =
IF(
DAY(TODAY())>10,
EOMONTH(TODAY(),0)+2,
EOMONTH(TODAY(),-1)+2
)
Kudos @AllisonKennedy : I dod not know the EOMONTH() function. Thank you!
Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!
@ me in replies or I'll lose your thread.
User | Count |
---|---|
120 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |