Forum Discussion
Sean
Community Champion
11 years agoMonth Columns in PBI Desktop
I noticed that when I load my data directly into PBI Online I automatically get YEAR and MONTH columns added next to all DATE columns I have! What is even better is that this MONTH column that PBI On...
- 11 years ago
We're currently working on this for the desktop .... and it will be a unified experience in both the desktop and service. There are several date time features that will show up. This kind of automatic behavior is among the first that will arrive.
teylyn
Advocate III
9 years agoWhy is that not working for me? My column "CreatedDate" is a date column. But when I use the formula
=FORMAT([CreatedDate],"yyyymm")
I get an error "the name 'FORMAT' wasn't recognized. Make sure it's spelled correctly.
teylyn
Advocate III
9 years agoOK, found it. The FORMAT function is a DAX function, not an M function. It would be a lot easier if people would point that out when posting a formula.
If you want to create the column in M, then use
=Date.ToText([CreatedDate],"yyyyMM")
With lower case yyyy and uppercase MM.