cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
diskovered Member
Member

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

Accepted Solutions
diskovered Member
Member

Re: Concat Year + Month

Thanks that works!

View solution in original post

5 REPLIES 5
Super User
Super User

Re: Concat Year + Month

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?  

diskovered Member
Member

Re: Concat Year + Month

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

amitchandak Super Contributor
Super Contributor

Re: Concat Year + Month

Try

QUOTIENT('Get'[Age in Months],12) & " Yr " & " & " & MOD('Get'[Age in Months],12) & " Mth "
diskovered Member
Member

Re: Concat Year + Month

Thanks that works!

View solution in original post

amitchandak Super Contributor
Super Contributor

Re: Concat Year + Month

Which one has worked Smiley Happy ? 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. 

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 267 members 2,825 guests
Please welcome our newest community members: