Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I wanted to create another column which adds 30 days to each date listed in another column. I tried using the formula: ColumnName2 = DATEADD(Table[ColumnName1],+30,DAY) but it doesn't seem to work.
Solved! Go to Solution.
Hi
Dateadd generates proper date result only when the source column date is continoues and the expected date sould be there in the source column. In your case the Table[Columnname1] may not meet the above condition. Either you can cretae a calendar table and use that date column , if you want to use dateadd. Else, as suggested above use New column = Tavble[ColName1]+30.
Thanks
Raj
_donev - the above solution "ColumnName2" works if in a BI table - but if in query mode - the solution works as example: ColumnName = Date.AddDays([Invoice Date],30) (My example would be like an invoice date + 30 days for due date)
I think you are going to need t columns, 1 with date by day (1/1/2018 etc...) and anotherone with Days by Month (31Days etc) ... then your formula would be something like Calculate(Sum(DaysInMonth)),DateADD(YourDateColumn)+30))
Hi
Dateadd generates proper date result only when the source column date is continoues and the expected date sould be there in the source column. In your case the Table[Columnname1] may not meet the above condition. Either you can cretae a calendar table and use that date column , if you want to use dateadd. Else, as suggested above use New column = Tavble[ColName1]+30.
Thanks
Raj
You can try this:
ColumnName2 = Table[ColumnName1] + 30
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
218 | |
87 | |
71 | |
63 | |
60 |