Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fosterma
Contributor III
Contributor III

Cumulative Total by User, Stacked Bar Chart

Hi All,

I'm attempting to create a stacked bar chart as attached drawing.

I have 'Invoice Date' as a dimension displayed as Month Year and I'm trying to show Total Amount accumulated by user per month as an expression.

I've defined it as follows, but I'm not getting the desired results. I'm Probably going about it the wrong way.

=aggr(Sum({$<[Invoice Year]={"$(=Max([Invoice Year]))"}>}[Total Amt.]), [User Name]))

Example Data:

Invoice Date | Department | User | Total Amt. |

01/01/2016 | Operations | User A | £10

01/01/2016 | Operations | User B | £15

01/01/2016 | IT | User C | £30

01/02/2016 | Operations | User A | £20

01/02/2016 | Operations | User B | £10

01/02/2016 | IT | User C | £10

Can anyone help point me on the right path?

Thanks,

1 Solution

Accepted Solutions
sunny_talwar

5 Replies
ariel_klien
Specialist
Specialist

Hi,

please see the attachment.

is that what you are looking for?

Ariel

sunny_talwar

Like this?

Capture.PNG

fosterma
Contributor III
Contributor III
Author

Yes, I think so Sunny

So the end result would look like as below but split by user for each month as you have above

Example2.png

sunny_talwar

Right now we only have one month of data that you have provided. I guess can you try the above example on your end and see if this is working for you or not?

fosterma
Contributor III
Contributor III
Author

Thanks Sunny