Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 anitamanders
		
			anitamanders
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hello,
I want to count the cusomers (=cddeb) that have a total sales (= omzet-bedr) of >20000<30000 (and so further on)
When I do this:
count
({<[omzet-bedr]={'>20000<30000'}>}distinct(cddeb))
the fomula is okay. But this doesn't sum the sales.
When I add sum to the formula:
count
({<sum([omzet-bedr])={'>20000<30000'}>}distinct(cddeb))
it doesn't work any more.
Why?
What do I do wrong?
Can someone help me out.
 
					
				
		
 swuehl
		
			swuehl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try like this
count({<cddeb = {"=sum([omzet-bedr]) >20000 and sum([omzet-bedr]) <30000"}>} distinct cddeb )
 tresesco
		
			tresesco
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try like:
Count(If(Aggr(Sum(omzet-bedr), cddeb)>20000 and Aggr(Sum(omzet-bedr), cddeb)<30000, cddeb))
 
					
				
		
 swuehl
		
			swuehl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Try like this
count({<cddeb = {"=sum([omzet-bedr]) >20000 and sum([omzet-bedr]) <30000"}>} distinct cddeb )
 
					
				
		
Hi
count
({<[omzet-bedr]={'>20000<30000'}>}distinct(cddeb)) this is correct
({<sum([omzet-bedr])={'>20000<30000'}>}distinct(cddeb)) this is not correct
dont give sum with field name
set analysis exp is like
sum({<[omzet-bedr]={'>20000<30000'}>}distinct(cddeb)) try like this
 
					
				
		
 israrkhan
		
			israrkhan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		try this.
count(if({<cddeb = {"=sum([omzet-bedr]) >20000 <30000"}>}) distinct cddeb )
 anitamanders
		
			anitamanders
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Thank you Swuel,
this works great!
 wajiha
		
			wajiha
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		hi everyone,
Need a little help here.
I'm trying to do on avg of float day in certain range, count number of retailers. here's the expression. but it doesn't work as expected.
count(if({<KYSC.FLOAT_DAY = {"=avg([KYSC.FLOAT_DAY])>=0<1"}>}) distinct KYSC_SALE_CHNL_CD )
please help.
thanks
