Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi all,
Anyone can help me with changing the Month into short form. For example, January to Jan.
I've beening reading quite a few answers which suggested using add column = Format([Month],”MMM”)
But all I got is the error message saying :
"Expression.Error: The name 'format' wasn't recognized. Make sure it's spelled correctly."
Can anyone help me with that?
Thanks!
Julia
If month contains month name like January , February etc. Then you can use by creating new column
Short Month = LEFT (Table[Month],3)
Proud to be a Super User!
Hi Julia,
If you're getting that error message, you must be creating the column in Power Query, which would be my preferred place to add columns where possible 🙂
Assuming that [Month] is of type date, you can add such a column using the expression:
=Date.ToText([Month], "MMM")
FORMAT is a DAX function, so you can only use it to create a calculated column after loading the data to the model and clicking "New column" on the ribbon or in the context-menu of a table in the Fields list.
Regards
Owen
Ok, maybe too early for the success. Is that true if I add column in the field, it's not making any real change in the query? Because I need this column for adding another column.
If data is consistent in that column, it will not affect your current query
Proud to be a Super User!
is that true we cant see it in the power query. In the end I'm able to add another column in the field but not the query.
Thank you Owen! Yes, you are right! Because I'm in that power query! I got out of that editor and tried in the field, the format is working! However, I think the format only works when it's date format, right? Mine is text.
Thank you! Yes, I realised the it's the text not the date.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 67 | |
| 34 | |
| 32 | |
| 29 |