on 09-13-2016 3:22 PM
Hi all,
do you know if there is a restriction concerning aggregation functions coming from a .unx for a measure with the data type String?
One of our clients tried to use the aggregation function "max" for the data type "String" from a universe in Lumira.
But trying to create a data set with this measure, the following message appears:
"Column "XYZ" has invalid aggregation function "max" for data type "String"."
She also tried to recreate the measure using Lumira's built-in aggregation function in combination with String, but it didn't work either.
In the user guide, I only found these limitations, so I hoped everything else would work:
When the column data type is Numeric, any aggregate function can be used for the measure.
When the column data type is Date or String, neither Sum nor Average can be used.
We are currently using Lumira 1.31.
Thanks and BR
Agnetha
Does the data in column "XYZ" have both character and numerical values ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Correct me if I'm wrong in the assumption. So you have few rows with the % and few of them just with the number.
You can remove the % using the Data Actions like Trim after <space> or Replace with <blank>
Then you will have only the numeric value which should enable all aggregation types when converted to a measure.
In Lumira, dimensions can be Characters,Numeric,Geo,Date or Time fields. By default anything which has combination of numbers and text is considered character, like in your case as there is number and %.
Only for numeric type all forms of aggregation are supported. Others when converted to measure only take Count (distinct/all). So the only way to achieve the aggregation you desire, is to change to numeric.
Can you make it a measure back in the Universe? Then it would work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.