Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

cancel
Showing results for 
Search instead for 
Did you mean: 
aniket_2701
Contributor
Contributor

Color change by dimension

Hii All,

I have question about change color as per dimension.

Ex: Prod,Sales

for 1 :Red

2 : Green

18 Replies
Sergey_Shuklin
Specialist
Specialist

prma7799
Master III
Master III

Can you please elaborate more?

Anil_Babu_Samineni

As always, short question won't help you as much you need.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
aniket_2701
Contributor
Contributor
Author

How to give color as per dimension

prma7799
Master III
Master III

Please share some sample app with expected output.

Anil_Babu_Samineni

When you talk about dimension text color, You have give some thing like below

If(FieldName = 'Smart', Green(), If(FieldName = 'Poor', Red(), LightCyan()))

This condition you must use from Dimension and go to Text colour then paste over there and hit ok. Here, How expression works as If FieldName has Smart value or name then text colour shows as green same as Poor text colour shows as Red or else LightCyan. This should work as you required

HTH

Anil

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
aniket_2701
Contributor
Contributor
Author

Its shows wrong.

I want to show the each dimension having different color.

Ex:Prod ,Sales

a,100

b,200

c,300

each dimension having different color in bar chart.

prma7799
Master III
Master III

Like this ?

Anil_Babu_Samineni

May be one option is go to colour tab and use persistence colour check box

Or else, Try this in BG colour from Expression

Color(FieldIndex('FieldName',FieldName))

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)