Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
S184019
Advocate III
Advocate III

Formatting not working properly

I've a simple table with a date field called "ServDate" formatted as a date *3/14/2001 with values ranging from 9/4/2018 to 3/29/2019.   The table has ~134K rows. Creating a new column like this

MMM = MONTH(a[ServDate]) 

I get: 

ServDate                      MMM
10/2/2018                    10
10/2/2018                    10
10/18/2018                  10
... so this works. 

 

But IF, we add this piece, MMM = FORMAT(MONTH(a[ServDate]),"MMM"),  we get 

ServDate                      MMM
10/2/2018                    Jan
10/2/2018                    Jan
10/18/2018                  Jan

 

The month here is October, not January. Please let me know if you want the pbix. 

 

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @S184019

 

Please modify the DAX like below: 

 

MMM-YY = CONCATENATE(FORMAT(Dates[Date],"MMM"),CONCATENATE("-",RIGHT(YEAR(Dates[Date]),2)))
 
q3.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @S184019

 

Please modify the DAX like below: 

 

MMM-YY = CONCATENATE(FORMAT(Dates[Date],"MMM"),CONCATENATE("-",RIGHT(YEAR(Dates[Date]),2)))
 
q3.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
S184019
Advocate III
Advocate III

Even more simply, start from a blank PBIX.  create a new table.   Type this which will produce a 2 year date range of 731 rows: 

 

Dates = CALENDAR(date(year(now())-2,month(now()),Day(now())),now())
 
Then add a column to the table like this: 
 
MMM-YY = CONCATENATE(FORMAT(MONTH(Dates[Date]),"MMM"),CONCATENATE("-",RIGHT(YEAR(Dates[Date]),2)))
 
One would expect to see values for the 3 letter month and 2 digit year, but instead, only Jan and Dec show up with their associated year.  @bi-support @v-yulgu-msft 
 
 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.