Version 8.0.2, Convert dimension to metric (measure)
Answered
Hi,
I have a var char column in the view containing data (1, 2, 3, 4, 5, N/A) from a survey.
I want to display the numerical data of the column in a chart using the Meter chart. It requires a measure.
How do I convert the data to measure (numeric) to enable the Meter chart?
I've tried the Dimension/Convert/Text to numeric function, but that doesn't do the trick.
Hi Roar,
Thanks for reaching out. I'm not entirely sure the following will work in 8.0.2, but it does in 9.0.4.1.
You can create a Calculated Field with a CASE Statement like follows:
This is my original column and the Calculated Field:
So you can see it's now a Metric field, and the non-numeric value is now a null value.
Please give this a try and let me know how goes. If this doesn't work, please let me know what error message you see in the UI and/or in the logs when you try to validate or save it.
Regards,
Mike
Hi Roar,
Thanks for reaching out. I'm not entirely sure the following will work in 8.0.2, but it does in 9.0.4.1.
You can create a Calculated Field with a CASE Statement like follows:
This is my original column and the Calculated Field:
So you can see it's now a Metric field, and the non-numeric value is now a null value.
Please give this a try and let me know how goes. If this doesn't work, please let me know what error message you see in the UI and/or in the logs when you try to validate or save it.
Regards,
Mike
Replies have been locked on this page!