The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All, Please help me with the DAX : If today is month end date then show current month end date, If not show previous month end date.
Is it Today Month End = "Yes" then '2/28/2022' else '1/31/2022'
Solved! Go to Solution.
Hi @titanic123 ,
How about this:
TomsDateMeasure = VAR _endOfCurrentMonth = EOMONTH ( today(), 0 ) VAR _endOfPreviousMonth = EOMONTH ( today(), -1 ) RETURN IF ( TODAY() = _endOfCurrentMonth, _endOfCurrentMonth, _endOfPreviousMonth)
Does this solve your issue? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
Hi @titanic123 ,
How about this:
TomsDateMeasure = VAR _endOfCurrentMonth = EOMONTH ( today(), 0 ) VAR _endOfPreviousMonth = EOMONTH ( today(), -1 ) RETURN IF ( TODAY() = _endOfCurrentMonth, _endOfCurrentMonth, _endOfPreviousMonth)
Does this solve your issue? 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
Also happily accepting Kudos 🙂 |
Feel free to connect with me on LinkedIn! | |
#proudtobeasuperuser | |
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
21 | |
12 | |
10 | |
7 |