Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Femke_DPG
Contributor III
Contributor III

Aggregation in pivot table

Hi all

I'm stuck with following:

The sum of Apr (and other months too) must be 100 % so 3-98 + 1 + 2 + 99 +100 must be 100 %.

The 31.24 % and 23.18 % is correct, but the total of position group must be 100 % (yellow)

Femke_DPG_0-1670240930658.png

My measure is this:

If((Dimensionality()) = 2,

sum({$<Preferred={'Voorkeur'},[Surcharges Codes2]={'VKP'}>}[Number of Insertions])/sum(total <Advertiser, Month> [Number of Insertions]),

sum({$<Preferred={'Voorkeur'},[Surcharges Codes2]={'VKP'}>}[Number of Insertions])/sum(total <Advertiser> [Number of Insertions]))

Can anyone help me please?

Thanks a lot!!

Femke

Labels (1)
1 Reply
brunobertels
Master
Master

Hi 

not tested but you may need to aggr your mesure and use the qualifier nodistinct somewhere in your mesure 

here an example i use in one of my app :

brunobertels_0-1670316698543.png

 

RED MESURE 

 

sum( Volume)/

sum(distinct aggr(nodistinct <Famille> sum( Volume) ,$(vDimPeriode1)))

 

GREEN MESURE : 

sum( Volume)/

sum(distinct aggr(nodistinct sum( Volume) ,$(vDimPeriode1),Famille))

 

Hop it helps