Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Transforming month values in Fields

Hello everyone,

I need to create a table which display the status green or red by month. Something like that:

kpi.JPG

My data base have a field called "Month" and another one called "Status Month" (that has the values Red or Green in text).

Anyone know how can i set the months as a field into the table, like in the example above?

It is possible to increase the table with the next months when the data base is populated? For example, today my data base doesn´t have data from december, but when this get updated, the table should display data from december in the right hand side column of the table.

Regards

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Create a pivot table chart with dimensions KPI and Month and expression

=only([Status Month])

Drag the Month dimension to the top using the mouse.

If more month are added, they will appear automatically in the table.

Is this what you are looking for?

You can color the cells in a background color attribute expression:

=If( [Status Month] = 'Red', Lightred(), Lightgreen() )

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Use a Pivot Table with Dimensions of KPI and Month, then drag the Month to the top.

When new Months are loaded into your qvw then they will appear in the Pivot Table.

swuehl
MVP
MVP

Create a pivot table chart with dimensions KPI and Month and expression

=only([Status Month])

Drag the Month dimension to the top using the mouse.

If more month are added, they will appear automatically in the table.

Is this what you are looking for?

You can color the cells in a background color attribute expression:

=If( [Status Month] = 'Red', Lightred(), Lightgreen() )

Not applicable
Author

Thanks guys, i appreciate your help.

I tryed to color the cells in a background color as you suggested, but it shows the RGB code, as you can see below:

rgb.JPG

What is missing to display the color?

Thanks


swuehl
MVP
MVP

You need to use the color expression in the background color attribute expression, open the attributes by clicking on the small plus sign next to the expressions (on expression tab of chart properties).

Not applicable
Author

Thank you swuehl.

I am almost there! Now i ned to remove the text from the cell, and just display the color. See:

Cores.JPG

Thanks

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Make your expression be:

=' '

-Rob

Anonymous
Not applicable
Author

Or put the same colour expression for text as background.

MarcoWedel

Hi,

maybe also helpful:

Hopefully quick question about calculated colours!

regards

Marco

Not applicable
Author

Thanks guys.