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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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 "

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. 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.