Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

New customer

Hi.

I want to know how many new customers bought in the selected period.

In the attached example, in the period 09/2013 I have customers A, G and H, I should have G and H, because A has already bought.

Regards.

1 Solution

Accepted Solutions
luciancotea
Specialist
Specialist

=Sum({1< >} aggr( if((min({1< >} Total <Cliente> Fecha)) = min(Fecha),1,0), Cliente))

View solution in original post

6 Replies
luciancotea
Specialist
Specialist

=Sum({1< >} aggr( if((min({1< >} Total <Cliente> Fecha)) = min(Fecha),1,0), Cliente))

rajni_batra
Specialist
Specialist

hi lucian will you plz expalin what {1< >}  does ?

I have never used this thing,,

Thanks,

luciancotea
Specialist
Specialist

See help on Set Analysis.

spividori
Specialist
Specialist
Author

Hi Lucian.

You can see it in my real data works poorly.

For example, I select May-2013 and sees as follows:

Captura.PNG

Attached is an example with my real data. Regards.

spividori
Specialist
Specialist
Author

HI.

Already solved, thank you very much.

Sum({1< >} aggr( if((min({1< >} Total <Vta_Cli> Vta_Fecha)) = min(Vta_Fecha),1,0), Vta_año, Vta_mes, Vta_Cli))

Regards.

jose123456
Contributor
Contributor

hola necesito hacer esto para qilkview

la idea es presionae año 2013  mes  enero y el  ptro mes mayor al siguiente

SELECT distinct NOMBRE

  FROM [FRONT].[dbo].[131 AUDITORIA FONDO]

where  fecha >='2013-01-01' and  fecha <='2013-01-31'

    and NOMBRE not in(select distinct NOMBRE  FROM [FRONT].[dbo].[131 AUDITORIA FONDO] where

       FECHA <='2012-12-31')