How to add % sign for dynamically changing metrics based on parameter?

Reference question- How can I change legend names dynamically as per parameter control selection?

With reference to the above chart, I have calculations in metric1,Metric2 which are a mix of numbers and percentages. I would like to display a % sign when a percentage metric is selected in the dropdown. How do I implement that?

I understand I can select the data type for overall metric1 and not individually? Is there any workaround?

I also tried directly using a calculated fields inside the metric1 but it shows me an aggregation error so I had to put the calculations inside metric1 only.

Hi @Rishita_Chebrolu,
There is no way to utilize different types of metrics on the same visual.

The best work around for this case would be to utilize a free form layout; create a visual that utilizes percentages and one that utilizes numbers.
Under the ‘rules’ section, set each visual to ‘hide this visual by default’. Then create a rule for each one to ‘show visual’ based on what your parameter is set as on the dropdown.

Let me know if you have any additional questions!

1 Like

But this would only when both the selected metrics in bar and line are %. If one is a % and the other is a number it would show number also as %.

Hi @Rishita_Chebrolu,
I’m not quite sure what you mean, could you please elaborate? As mentioned above, there are current limitations that don’t allow visuals to show numbers and percentages at the same time.

1 Like

Hi @Rishita_Chebrolu,
It’s been awhile since we last heard from you, did you have any additional questions regarding your initial post?

If we do not hear back within the next 3 business days, I’ll close out this topic.

Thank you!

Hi @Rishita_Chebrolu,
Since we haven’t heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.

Thank you!