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: 
Not applicable

Pivot table background color in cells with no data

Dear Sirs,

I have a PL statement in a pivot table, and on one of my expressions i need a fixed background color.

However, the background color formula does not apply if the cells has no data (marked with yellow in screen shot)

How to fix?

My data is both ODBC, excel and script-internal calculations.

screenshot.JPG

1 Solution

Accepted Solutions
Not applicable
Author

Loading Dummy Records is nt good practice... refer the attached application

View solution in original post

9 Replies
kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Go to expression Tab then click your expressions plus button then you can able to add the conndition for Backround color. See the below screen Short.

BG.jpg

Not applicable
Author

Thanks, i tried just that. And it works fine if the cells contain data/values.

But the color-expression does not apply to cells with no data. The formula i typed is rather simple RGB(240,240,240)

Jesper

Not applicable
Author

Use If(IsNull(Filedname))

Not applicable
Author

Thanks. Tried this: (the expression formula is sum(BudgetAmount3)

 

if(isnull(BudgetAmount3) , rgb(240,240,240) , rgb(240,240,240))

but still doesnt work.

Other suggestions?

Not applicable
Author

Use this,

this will solve ur prblm

=If(Manpower=5,RGB(0,0,128),

               If(IsNull(Manpower),RGB(0,128,0),RGB(128,0,0)))

Not applicable
Author

Thanks. Cant get it to work though. Problem is that data is missing and QV dont have data to put into the color calculation.

Accordign to this thread its impossible to fix

http://community.qlik.com/message/187996#187996

Might try to load some dummy-records and zero-values to fill in to the missing spaces.

Thanks for the replies.

Jesper

Not applicable
Author

Boss try this,

If(IsNull(FieldName),RGB(0,128,0),RGB(128,0,0)))

the statement itself says if the field is null then show the respective color....

rest is on ur wish.

Not applicable
Author

Loading Dummy Records is nt good practice... refer the attached application

Not applicable
Author

It works, i only needed to uncheck 'supress zero values'

Thanks a lot 🙂

Jesper