Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am trying to do add a calculate column through advance editor by adding dateadd function to the date column.
It is giving me error that dateadd function was not recognized.
Please help me on this issue.
Regards,
Kumar
Solved! Go to Solution.
Hi @kumarleau,
It seems to be that you may mix DAX and Power Query(M). DATEADD function is a DAX function, so it cannot be used in Query Editor. You should use it under Modeling tab like below.
Regards
Apparently you didn't understand the reply.
DATEADD is a DAX function. You can't use DAX functions in the query editor.
Instead, try Power Query (M) function Date.AddYears
Power Query (M) and DAX are 2 completely different languages within Power BI.
Hi @kumarleau,
It seems to be that you may mix DAX and Power Query(M). DATEADD function is a DAX function, so it cannot be used in Query Editor. You should use it under Modeling tab like below.
Regards
Hi,
Thanks for your reply.
let
Source = Sql.Database("ebi-etl-dev-01", "dbname"),
dbo_Report_Booking_Live = Source{[Schema="dbo",Item="Report_Booking_Live"]}[Data],
OpportunityCreatedDate1 = dbo_Report_Booking_Live[OpportunityCreatedDate]
OpportunityCreatedDate2=DateAdd(opportunityCreatedDate,-1,year)
in
OpportunityCreatedDate1
Apparently you didn't understand the reply.
DATEADD is a DAX function. You can't use DAX functions in the query editor.
Instead, try Power Query (M) function Date.AddYears
Power Query (M) and DAX are 2 completely different languages within Power BI.
Hello Experts, Any this.
Regards,
Kumar
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |