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: 
Not applicable

Aggr Function

Hi Guys.

I have a table with Dates, amount of sales and total of money for that sales.

I want to add an Aggr funtion grouping by Year and Month. I use that function as you see in the header of the following table.

I get "-" for all days of the month unless the first day. I want the same value repeted for all the days. I placed the table as I need below.

I really appretiate your help.

Thanks

This is what I need!

Daten° SalesSum(Budget)
Aggr(sum(SolImpSolicit),Year,Month)
01/01/2012380729.199.904
02/01/20129573.584.905                                               29.199.904
03/01/201211764.306.302                                               29.199.904
04/01/201214044.689.416                                               29.199.904
05/01/201219056.323.552                                               29.199.904
06/01/2012288612.333                                               29.199.904
07/01/20128903.160.001                                               29.199.904
08/01/2012162555.044                                               29.199.904
09/01/201215215.967.543                                               29.199.904
01/02/20126383.740.54635.704.289
02/02/20126563.723.210                                               35.704.289
03/02/20127914.255.689                                               35.704.289
04/02/20125162.650.510                                               35.704.289
05/02/201270320.220                                               35.704.289
06/02/20129635.336.331                                               35.704.289
07/02/20129074.830.365                                               35.704.289
08/02/20128484.780.046                                               35.704.289
09/02/201210246.067.371                                               35.704.289
01/03/20123573.834.08537.977.909
02/03/20123934.304.078                                               37.977.909
03/03/20122442.540.731                                               37.977.909
04/03/201237241.446                                               37.977.909
05/03/20124264.523.179                                               37.977.909
06/03/20123684.299.208                                               37.977.909
07/03/20124295.814.514                                               37.977.909
08/03/20124695.743.115                                               37.977.909
09/03/20125286.677.554                                               37.977.909

This is what I get!

Fecha de EmisiónColocación Casos Monto colocación
Aggr(sum({<%Fecha=>}SolImpSolicit),Año,Mes)
01/01/2012380729.199.904
02/01/20129573.584.905-
03/01/201211764.306.302-
04/01/201214044.689.416-
05/01/201219056.323.552-
06/01/2012288612.333-
07/01/20128903.160.001-
08/01/2012162555.044-
09/01/201215215.967.543-
01/02/20126383.740.54635.704.289
02/02/20126563.723.210-
03/02/20127914.255.689-
04/02/20125162.650.510-
05/02/201270320.220-
06/02/20129635.336.331-
07/02/20129074.830.365-
08/02/20128484.780.046-
09/02/201210246.067.371-
01/03/20123573.834.08537.977.909
02/03/20123934.304.078-
03/03/20122442.540.731-
04/03/201237241.446-
05/03/20124264.523.179-
06/03/20123684.299.208-
07/03/20124295.814.514-
08/03/20124695.743.115-
09/03/20125286.677.554-
Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try using a NODISTINCT qualifier in your aggr() function:

Aggr( NODISTINCT sum({<%Fecha=>}SolImpSolicit),Año,Mes)

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try using a NODISTINCT qualifier in your aggr() function:

Aggr( NODISTINCT sum({<%Fecha=>}SolImpSolicit),Año,Mes)

Not applicable
Author

You ROCK!

I didn't know that!

Thanks!