The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |