Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
makximenkoa
Contributor III
Contributor III

Displaying Sum Total Per Category Ignoring Month Dimension

Hello,

I have a table something like below:

MonthDenial CodeDenied Amount
Jan1$45
Jan2$65
Jan3$75
Feb1$45
Feb2$65
Feb3$75
Mar1$45
Mar2$65
Mar3$75

What I am attempting to do is add another column that lists the total sum of all Denied Amounts per Denial Code. In theory, this table would look something like below:

MonthDenial CodeDenied AmountTotal
Jan1$45$135
Jan2$65$195
Jan3$75$225
Feb1$45$135
Feb2$65$195
Feb3$75$225
Mar1$45$135
Mar2$65$195
Mar3$75$225

The closest I've gotten has been

sum(TOTAL <Month>  [Denial Amount])

, although it instead lists the total amount of each month on every line (in the case of the example above, $185 would be stamped on each line since the Denied Amounts totaled the same number every month).

I tried various various versions of that statement wrapped in AGGR to no avail.

Any help would be most appreciated!

Thanks

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

it seems that sum(total <[Denial Code> [Denial Amount] ) should work

have a look at the attach example

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

it seems that sum(total <[Denial Code> [Denial Amount] ) should work

have a look at the attach example

michaelnoyen
Partner - Contributor
Partner - Contributor

Hi together,

I really like Lirons solution:

sum(total <[Denial Code]> [Denial Amount] )

Is it possible just to ignore the time dimension? We would like to reuse the expression in several charts/tables, so we have a long list of dimensions, that should not be ignored:

sum(total <[Sub product], Product, [Product category], [Product level], [Product area], Client, [Local Party], [Customer group]> Amount )

I would like to have a shorter expression. Something in this direction:

sum(total <not(Date)> Amount )

Is this possible with Qlik syntax?

Thanks

Michael