This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I have this table
I'm trying to reduce Date1 by the Month column and return the results in Date2.
I'm using the formula;
=dateadd(Resign_Append[Date1],-Resign_Append[Month],MONTH)
I have no idea why I'm getting values in some rows of Date2 and not in others (as above).
Any ideas?
Thanks in advance
Solved! Go to Solution.
@PMF99 ,
Here is the formula in DAX:
New Date DAX = VAR _year = YEAR ( Resign_Append[Date1] ) VAR _month = MONTH ( Resign_Append[Date1] ) VAR _day = DAY ( Resign_Append[Date1] ) VAR _monthToSubstract = Resign_Append[Month] RETURN DATE ( _year, _month - _monthToSubstract, _day )
@Anonymous,
DATEADD is a time intelligence function that returns a table, so you will get the incorrect results. You use Date.AddMonths() function in Power Query to substract the month from your date.
Thanks NickNg.
Any idea how do perform this calculation in DAX as I have multiple queries in my model?
@PMF99 ,
Here is the formula in DAX:
New Date DAX = VAR _year = YEAR ( Resign_Append[Date1] ) VAR _month = MONTH ( Resign_Append[Date1] ) VAR _day = DAY ( Resign_Append[Date1] ) VAR _monthToSubstract = Resign_Append[Month] RETURN DATE ( _year, _month - _monthToSubstract, _day )
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |