Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Excel conditional formatting in Qlik

Hi all,

Is there a way to auto-colour cells in Qlik similar to how Excel can without having to define each colour? e.g.

   

156.6721.6913.85%
110.9822.4320.21%
107.2016.8915.76%
100.1225.0525.02%
69.5316.2623.39%
58.4513.4823.06%
52.2911.2021.41%
49.4911.3923.02%
37.498.6923.17%
32.496.3519.54%
1 Solution

Accepted Solutions
sifatnabil
Specialist
Specialist
Author

Thanks jontydkpi‌ and loveisfail‌ for the help - I can conclude that using the Colormix wizard has functions that prevent sorting. The better solution I found was this, which allows sort:

ColorMix1( rank(total YOUREXPRESSION)/noofrows(TOTAL) , rgb(176,255,216),rgb(255,128,128))

View solution in original post

7 Replies
Anil_Babu_Samineni

Autocolor means what? In qlik, we have buckets to do this? What is the condition to do that in Excel

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
sifatnabil
Specialist
Specialist
Author

Hi,

Excel seems to have the ability to automatically colour in the cells with this function, which is quite useful:

autocolor.PNG

jonathandienst
Partner - Champion III
Partner - Champion III

Check out the Autocolor Wizard in the File menu of the expression editor. This helps to define an expression with colours graduated by value from one colour to another colour, such as the Excel colouring you show in your post.

You can then use this colour expression in the background colour property for the column.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anil_Babu_Samineni

Excel Experts writes the Macros for built in suck kind of default. But Qlikview won't capture same as Excel and if you want to do in qlikview we may help you with Condition like <20% , >=20% - <=80% , >80% like these.

We have expression which called Color(FieldIndex('FieldName', FieldName)

In factm Color and FieldIndex developed same architecture which is in Excel

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
sifatnabil
Specialist
Specialist
Author

Thanks, this works, but implementing a background color now prevents me from double-click sorting the columns on the straight table. Is this supposed to happen?

jonathandienst
Partner - Champion III
Partner - Champion III

Its not the background colour itself that prevents sorting, but the colour expression may include an expression function, like above(), that affects sorting.

You can test this by adding a trivial colour expression to sortable table (like

=If(Column(1) > 100, LightCyan())

The table will still sort.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sifatnabil
Specialist
Specialist
Author

Thanks jontydkpi‌ and loveisfail‌ for the help - I can conclude that using the Colormix wizard has functions that prevent sorting. The better solution I found was this, which allows sort:

ColorMix1( rank(total YOUREXPRESSION)/noofrows(TOTAL) , rgb(176,255,216),rgb(255,128,128))