Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Different Colours in Subtotal-Sums (Pivottable)

Hello,

I have a question based on the dynamic change of font colour of the Subtotal-Sums in Pivottables. The sums should be compared to the time of an other field (MaxBreakdowntime).

So if the Subtotal-Sum is greater than the data of MaxBreakdowntime than the font colour should be red(), if it is less than the font colour should be green(). Please note, but the colour should only change for the Subtotal-Sums not for each row.

Please use the .qvw file for the solution. I hope somebody could help me.

Thanks.

Regards,

Herbert

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

For this kind of scenario you should try to use Dimensionality() function.

Your expression would look like below one.

if(Dimensionality()=2,

if(sum(RealBreakdowntime)>Only (MaxBreakdowntime),red(200),green(200)))

Check my attached application, that will give you clear picture.

Good Luck Yes

Happy Coloring Wink

- Sridhar

View solution in original post

2 Replies
Not applicable
Author

Hi,

For this kind of scenario you should try to use Dimensionality() function.

Your expression would look like below one.

if(Dimensionality()=2,

if(sum(RealBreakdowntime)>Only (MaxBreakdowntime),red(200),green(200)))

Check my attached application, that will give you clear picture.

Good Luck Yes

Happy Coloring Wink

- Sridhar

Not applicable
Author

Hi Sridhar,

Thank you very much, I have tried your Solution and it works fine for me, I haven't thought of the dimensionality() function but with this it works.

Have a nice day.

Regards,

Herbert