Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Thanks Ashutosh, your solution seems to work.
However, it seems I found another way that suits my problem better.
I’m using variable (let’s call it vFormatGraph), which specifies the correct number format for each of my metrics:
if(Data_Type ='Currency','$#,##0.;($#,##0.)',
if(Data_Type ='Percentage', '##.#%'))
Then I’m using this expression to calculate my actuals:
=num($(vActual), '$(vFormatGraph)')
In the chart, under number format, I selected ‘Expression Default’. This solution works perfectly.
You said " have a list box MetricName ": is it a metric group? It's the easiest way to do that. And in the "number" sheet you can choose how display each metric
Hi,
I believe you will need to use two expressions to show this and that will be more efficient approach also (when in Version 11, we have conditional expresisons).
because when you use one expression and two different formatting on the basis of conditions, Qlikview will try to decide one format for expression to show on
axis when rendering chart and it is different from the values shown on bars etc. for example just set your number format for a
that is the reason you are not able to switch formatting on axis.
For version 10, I have made a workaround which will help you to solve your issue.
Please find the attached file.
It is not a perfect answer to your query but hope it helps.
..
Ashutosh
Thanks Ashutosh, your solution seems to work.
However, it seems I found another way that suits my problem better.
I’m using variable (let’s call it vFormatGraph), which specifies the correct number format for each of my metrics:
if(Data_Type ='Currency','$#,##0.;($#,##0.)',
if(Data_Type ='Percentage', '##.#%'))
Then I’m using this expression to calculate my actuals:
=num($(vActual), '$(vFormatGraph)')
In the chart, under number format, I selected ‘Expression Default’. This solution works perfectly.
oh...great..