The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi Community,
I am trying to write DAX on following examples (as shown below):
Based on value of "Date" (like 02/20/2021, 01/10/2021), I would like to create column value like "Next Month First Day", "Current Month First Day", "2 Month..", "4 Month.." etc.
I think creating Column is what I needed now, but if there is a way to create Measure, I will use later.
Thanks.
Solved! Go to Solution.
Hi:
If your matrix has month as column, then this would work as a measure:
Hi Justin:
Anoter variation you might like is:
=NEXTDAY(LASTDATE(Dates[Date]))
It's less code and works if you are set up by month. Just FYI. Bill
Hi:
If your matrix has month as column, then this would work as a measure:
Hi:
NP.
I got this now in column:
Current Month First Day1 = EOMONTH(CALENDAR[Date] ,-1)+1
2 Month Ago First Day1 = EOMONTH(CALENDAR[Date] ,-3)+1
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
18 | |
18 | |
17 | |
15 | |
11 |
User | Count |
---|---|
35 | |
35 | |
19 | |
19 | |
14 |