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
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
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.