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