Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conditional Formating in Qlikview

Hi,

here find the attached excel of conditional formating in which i have Net of PE with the previous day.

formula is as:

If Net of PE of 1st jan would be greater than 31st dec so it would be green and if less than then it would be red.

How do i give same condition in Qlikview.

  

                

County31st Dec1st Jan2nd Jan3rd Jan4th Jan
Billing PENet of PEBilling PENet of PEBilling PENet of PEBilling PENet of PEBilling PENet of PE
BHANDARA2551524026323240263232402632324026322241
CHANDA2551923626327236263272362632723626322241
GONDIA2502023025828230258282302582823025822236
GADCHIROLI2551923626327236263272362632723626322241
NAGPUR260132472682124726821247268212472688260
6 Replies
ArnadoSandoval
Specialist II
Specialist II

Hi Trapti

You excel example does not contain a good sample to test your condition, I just modified it a bit, and re-attach the file to my reply. The condition you need to add to the 1st Jan Billing background function is:

if([1st Net of PE] > [31st Net of PE], rgb(0, 255, 0), if([1st Net of PE] < [31st Net of PE], rgb(255,0,0)))

I also attached a sample QVF with the solution.

Hope this helps

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
Not applicable
Author

Hi,

I am not able to open this qvf file.

Also pls paste the script on the mail bady so that i'll try to work from that

ArnadoSandoval
Specialist II
Specialist II

Hi Trapti,

Nothing is done in the script, applying background color to a table's column is done at the table's interface.

QS-Colours.png

The background color expression is:

if([1st Net of PE] > [31st Net of PE], rgb(0, 255, 0), if([1st Net of PE] < [31st Net of PE], rgb(255,0,0)))

Hope this helps.

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
ArnadoSandoval
Specialist II
Specialist II

Forgot to attach this image

QS-Colours-01.png

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
Not applicable
Author

Thanks.

But in Qlikview i have modified these fields with other name.

pls help me to apply it here.

i am attaching the qlikview

Not applicable
Author

I am trying to apply here

if(2 NOP) >(1 NOP), rgb(0, 255, 0), if([2 NOP] < [1 NOP], rgb(255,0,0)))

But it not working