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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to display month name and year that are extracted from date column in Card?

Hi, I need help to extract month (text field) and year (numerical field) in the Card?

 

Currently, I am able to display the last completed date in the card in full format

zxavierdeloitte_0-1607327174522.png

But I want only "Jun-19" to be displayed in the card.

 

My data field:

zxavierdeloitte_1-1607327259948.png

 

But when I tried to create a new measure:

 

MonthYear completed = concatenate (month (XX), year(XXX). The column that I wanted for Month does not appear for Month and Year as I do not have any calculated column for me to select for month and year. 

 

zxavierdeloitte_2-1607327382777.png

 

I have tried to create a new column with "Related" DAX function but it does not work for me.

 

How do I do that to display month and year only in the card only?

 

Thanks

 

2 ACCEPTED SOLUTIONS
Fowmy
Super User
Super User

@Anonymous 

 

Please try the following measure:

Completed Month and Year = 

FORMAT( MAX(Table[Completed Date]) , "Mmm" ) && " - " && 
FORMAT( MAX(Table[Completed Date]) , "YYYY" )

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

Anonymous
Not applicable

Hi 
I have changed it to other formula

 

CONCATENATE(FORMAT(MAX(Program[Date Completed]), "Mmm"), CONCATENATE( "-",FORMAT(MAX(Program[Date Completed]), "YYYY")))
It works.
 
Thanks!

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@Anonymous 

 

I think the closing brackets are not correctly placed, please recheck.

 

Add one ) after "Mmm" and remove the last )

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi 
I have changed it to other formula

 

CONCATENATE(FORMAT(MAX(Program[Date Completed]), "Mmm"), CONCATENATE( "-",FORMAT(MAX(Program[Date Completed]), "YYYY")))
It works.
 
Thanks!
Fowmy
Super User
Super User

@Anonymous 

 

Please try the following measure:

Completed Month and Year = 

FORMAT( MAX(Table[Completed Date]) , "Mmm" ) && " - " && 
FORMAT( MAX(Table[Completed Date]) , "YYYY" )

 

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

@Fowmy 

Hi, thanks

There is no error in DAX but it cannot be displayed correctly in the card.

 

zxavierdeloitte_0-1607329421578.png

zxavierdeloitte_1-1607329451646.png

zxavierdeloitte_2-1607329461605.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors