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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Chainfire74
Helper I
Helper I

Add text within calculation measure

Hi,

 

This calculation gives me an average number, but is it possiblefor me to add the word 'Years' after the calculation so it is in one data card?

 

Average Tenure of Leavers =
CALCULATE(AVERAGE(Leavers3[Years Service]))

 

Thanks

1 ACCEPTED SOLUTION

You would need to FORMAT the number before it's joined.

 

CONCATENATE ( 
    FORMAT ( 
        CALCULATE ( 
             AVERAGE ( Leavers3[Years Service] ) 
        ),
        "0.00"
    ),
   " years" 
) 

 There are different options instead of "0.00", you can find them all here 

View solution in original post

5 REPLIES 5
MahyarTF
Memorable Member
Memorable Member

Hi,

Use this Dax Measure :

format(CALCULATE(AVERAGE(Leavers3[Years Service])), "#Year#$#,0.00")
Mahyartf
AntonioM
Solution Sage
Solution Sage

You can use CONCATENATE

CONCATENATE ( CALCULATE ( AVERAGE ( Leavers3[Years Service] ) ), " years" ) 

Thanks. When I do this, it does work - but I'm unable to change the decimal places. Any ideas? 

 

Chainfire74_0-1658828220842.png

 

 

 

You would need to FORMAT the number before it's joined.

 

CONCATENATE ( 
    FORMAT ( 
        CALCULATE ( 
             AVERAGE ( Leavers3[Years Service] ) 
        ),
        "0.00"
    ),
   " years" 
) 

 There are different options instead of "0.00", you can find them all here 

Perfect, thank you. That worked!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.