Hi Kavya,
You can use Replace function to make it work with any type of value dynamically, you can use it as following:
Replace(AxisValue," Status","")
Note: You will find this function from Built-in Functions -> Text Folder as shown in screenshot below

Hope it works, Thanks