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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
diskovered
Helper III
Helper III

Concat Year + Month

I have this measure:
Age Year & Month = 'Get'[Age in Years] & " Yr " & " & " &'Get'[Age in Months] & " Mth "
 
YearMonth.PNG
This is obviously not the best way to show Year + Month, can you help me modify this measure to get the Year + Month in this format. Thanks
 
 
 
1 ACCEPTED SOLUTION

Thanks that works!

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Try

QUOTIENT('Get'[Age in Months],12) & " Yr " & " & " & MOD('Get'[Age in Months],12) & " Mth "
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks that works!

Which one has worked 🙂 ? You seem to have marked your reply as a solution. In case there is a different solution please post and mark that as a solution. 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Cmcmahan
Resident Rockstar
Resident Rockstar

So what is your expected output?  3 Yrs & 35 Mth seems not right, but what do you want to display here? 2 Yrs and 11 Mth?  

Yes,  2 Yrs and 11 Mth should be the expected output. Thanks

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.