Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
publication1
Contributor III
Contributor III

On a Bar Graph - How do I change the colour for each to my own selection?

Hi there I've tried a few ways to just do the most simple method to change a colour on a bar graph.

I have 3x (Heights) I want the first to be GREEN seconds to be ORANGE and third to be RED.

How is this not possible ?

Labels (4)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

What ever you have applied in the chart, Let's assume

1) Sum(Sales)

2) Sum(Profit)

3) Sum(Loss)

Then, In the left side you can see "Master Items" --> Measures --> Create New --> Provide Sum(Sales) with color

vice versa for all three. Then, Use measure as what you created in the master item.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

7 Replies
felipedl
Partner - Specialist III
Partner - Specialist III

Hi,

If you always have 3 bars, you can do it by using:

if(RowNo()=1,red(),if(RowNo()=2,blue(),green()))

That will always give for the first bar red then blue and then green.
Anil_Babu_Samineni

What is 3x here?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
publication1
Contributor III
Contributor III
Author

rrrrrrrrrrrr.PNG

Three values(heights)

publication1
Contributor III
Contributor III
Author

Thanks, this did work and was a start however i need it like the attached image if you understand 🙂

 

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.PNG

Anil_Babu_Samineni

Create each measure in "Mater Measure" with color and they apply those measures in report. There is no other way until unless If you go with extensions.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
publication1
Contributor III
Contributor III
Author

Okay im happy to try this, do you have a guide handy I can follow step by step please ?

Anil_Babu_Samineni

What ever you have applied in the chart, Let's assume

1) Sum(Sales)

2) Sum(Profit)

3) Sum(Loss)

Then, In the left side you can see "Master Items" --> Measures --> Create New --> Provide Sum(Sales) with color

vice versa for all three. Then, Use measure as what you created in the master item.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful