Qlik Community

QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Highlighted
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

Different Colours in Subtotal-Sums (Pivottable)

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

2 Replies
Not applicable

Different Colours in Subtotal-Sums (Pivottable)

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

Different Colours in Subtotal-Sums (Pivottable)

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