Forum Discussion
Chainfire74
4 years agoHelper 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(AVE...
AntonioM
4 years agoSolution Sage
You can use CONCATENATE
CONCATENATE ( CALCULATE ( AVERAGE ( Leavers3[Years Service] ) ), " years" ) - Chainfire744 years agoHelper I
Thanks. When I do this, it does work - but I'm unable to change the decimal places. Any ideas?
- AntonioM4 years agoSolution Sage
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
- Chainfire744 years agoHelper I
Perfect, thank you. That worked!