Hello team,
I am trying to create a Calculated filed to pull that in to Dimension for Pie Chart
Eg:- Mobiles = distinct_count(ifelse(type=‘Mobiles’,ID,NULL)
Laptops = distinct_count(ifelse(type=‘Laptops’ ,ID,NULL)
Laptops_Asia = distinct_count(ifelse(type=‘Laptops’ and {region} = ‘Asia’ ,ID,NULL)
Laptops_America = distinct_count(ifelse(type=‘Laptops’ and {region} = ‘America’ ,ID,NULL)
Ipads = distinct_count(ifelse(type=‘Ipads’,ID,NULL)
I am unable to drag all of these in to Measure Values to create a PIE chart as the Measure value is limiting to give only 1 field .So I tried to create all of these in to Single Calculated field but facing
Mismatched Aggregation, Custom aggregation can’t contain both aggregated and non-aggregated fields , My calculation field as follows
ifelse({type}=‘Mobiles’, {Mobiles}, {type} =‘Laptops’ and {region} = ‘Asia’ ,{Laptops_Asia},
{type} =‘Laptops’ and {region} = ‘America’ ,{Laptops_America},{type}=‘Ipads’,{Ipads},NULL)
Here two things
- I can directly drag my {type} in to Dimensions but problem is I can’t get the region specific counts as {type} column doesn’t contain region specific values . we have to put other filters to it but those filters shouldn’t apply to Mobiles & Ipads , So i left with creating custom calculated filed
- If I can drag Multiple measure values to a Pie chart just like Tableau , I can easily get the chart but its not allowing me to do the same. At a time I can drag only 1 agrregate filed to measure values.
Quick help is much appreciated.