Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
aminehaddar
Contributor II
Contributor II

Aggregation and result problem

Hello,

I have this table : (exemple )

SEGMENT ID LIMITE_CIBLAGE LIMITE_AOUT CLIENTS_CIBLAGE NBR_CLIENT
TX
41 25,000%
X637942000,02000,0100,000%
X690642000,02000,0100,000%
X750922000,02000,0100,000%
X874010,033.511100,000%
....

NBR_CLIENT=if(LIMITE_AOUT<>LIMITE_CIBLAGE, 1,0)

I have 5 segments, if I choose the first one, I got 0.001%, or my expresion is NBR_CLIENT/CLIENTS_CIBLAGE should give me 2.1%

I tried for the others, it is the same problem, or for the SEGMENT = X , I got the right result.

For segment Y for exemple: I have NBR_CLIENT=1600 and CLIENT_CIBLAGE = 5700.

I can't find what is the problem. any help please?

thanks.

Labels (1)
1 Reply
ogautier62
Specialist II
Specialist II

Hi,

with something like sum(nbr_client)/sum(total <segment> clients_ciblage) it should be better

regards