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.
I'm trying to create a new column that is the calculated end of month from the date in another column. Using this formula, but getting error that "EOMONTH" wasn't recognized
= Table.AddColumn(#"Renamed Columns", "AccountingDate", each EOMONTH([DATE],0))
Solved! Go to Solution.
Hi @Anonymous, it looks like you are trying to do this in the Query Editor as most of the code below is Power Query functions. DAX can't be used in the Query Editor, so you can't use the EOMONTH() DAX function.
Is there a reason you are doing this inside the query editor, rather than doing it in the "Modeling" tab of Power BI desktop (after you load the data from your query into your model)?
If you must do this within the Query Editor, try using the M function Date.EndOfMonth. You can find more details on the syntax here: https://msdn.microsoft.com/en-us/library/mt260695.aspx
Hi @Anonymous,
As JaredK mentioned above, to use EOMONTH Function (DAX), you need to go to Modeling tab -> click "New Column" and enter your DAX formula.
NewColumn = EOMONTH(Table1[DateTimeStamp], 0)
For more details about how to create calculated columns in Power BI Desktop, you can refer to this article.
Regards
Hi @Anonymous,
As JaredK mentioned above, to use EOMONTH Function (DAX), you need to go to Modeling tab -> click "New Column" and enter your DAX formula.
NewColumn = EOMONTH(Table1[DateTimeStamp], 0)
For more details about how to create calculated columns in Power BI Desktop, you can refer to this article.
Regards
Hi @Anonymous, it looks like you are trying to do this in the Query Editor as most of the code below is Power Query functions. DAX can't be used in the Query Editor, so you can't use the EOMONTH() DAX function.
Is there a reason you are doing this inside the query editor, rather than doing it in the "Modeling" tab of Power BI desktop (after you load the data from your query into your model)?
If you must do this within the Query Editor, try using the M function Date.EndOfMonth. You can find more details on the syntax here: https://msdn.microsoft.com/en-us/library/mt260695.aspx
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
38 | |
29 | |
28 |
User | Count |
---|---|
99 | |
88 | |
62 | |
42 | |
39 |