which version of Qlik Sense are you using?
with September version you can create a master item single dimension with your expression (ex. if(... ) and use it as dimension in your master item drill down dimension.
In that way the dimension label (name property) will be shown in your chart object.
I hope it helps.