Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
chrismtb
Creator
Creator

cumulative counter on a text dimension in a pivot chart

Good morning Qlikers,

I have a pivot table with several dimensions (which are grouped in the on screen view). Is it possible to dynamically calculate (in an expression)  how many different values there are in the dimension in a cumulative way?

To try and make that question clearer my data set would look something like this:

AreaTeamStaff NameCalc (No Hours)Team Count
North WestTeam ASteve81
North WestTeam ADave71
North WestTeam AEric121
North WestTeam BSteph112
North EastTeam CCarrie103
North EastTeam CMark73
North EastTeam CPete83
North EastTeam DChris44

 

Items with Blue headers are the dimensions.

Items with Purple headers are expressions.

The column in Red is the count... I can't do this via a mapping table in data load as the pivot changes dependent on filters and I need the count to be dynamic.

I have used cumulative sums previously but don't have a clue if / how that could be applied in this situation.

Any ideas would be welcome!

 

Thanks

1 Solution

Accepted Solutions
rubenmarin

hi, can you try this?:

RangeSum(Above(TOTAL [Team Count]),If(Team=Above(TOTAL Team), 0, 1))

View solution in original post

2 Replies
rubenmarin

hi, can you try this?:

RangeSum(Above(TOTAL [Team Count]),If(Team=Above(TOTAL Team), 0, 1))

chrismtb
Creator
Creator
Author

Perfect  @rubenmarin .

This does exactly what I needed and adds the cumulative count as an expression.

I have taken it further and referred to this field in my conditional formatting allowing me to add alternate stripes to the table by the Team groupings making my table easier to read!!

 =if(odd(TeamCount)=0,rgb(242,242,242) 

This means I get a table looking like this:

chrismtb_0-1619445375210.png

Thanks once again!

 

Chris