Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to build a chart?

Hi,

I need to create a chart that looks like this one below. Pink data is actual sales (June is the last month for which data exist), black data is budget and forecast. First forecast is available for march. What QV object should I use? What is the way to colour cells? The data for sales budget and forecat is available in standard pivit table.

THanks

IIIIIIIVVVIVIIVIIIIX
Jan-10388382404409409422444444485508557557
Feb-10400404409409422444444485508557557
Mar-10427435440484488496515533552553
Apr-10435440484488496515533552553
May-10445484488496515533552553
Jun-10471488496515533552553
Jul-10000000
Aug-1000000
Sep-100000
Oct-10000
Nov-1000
Dec-100


2 Replies
johnw
Champion III
Champion III

I'm a little lost on what you're actually doing, but I can try to answer anyway. Yes, this looks like a pivot table to me, so I'd use that object. To set the background color in the cells, click on the little + next to the expression. Up will pop a list of things you can adjust. Two of these are "Background Color" and "Text Color". Click on "Background Color" and it will give you a "Definition" box where you can enter a color expression. For instance:

=if(sum(Sales)>500,rgb(200,150,100),lightgray())

You can enter the same sort of color expression for the "Text Color".

Not applicable
Author

Thanks John. Colouring cells works fine. Actually now I have a problem with building expression. If you look at my chart there is one dimension (monthyear) on both axes. I also have three metrics - sales (pink) budget and forecast (black). I would like my chart to display data exactly this way i.e. for Apr-10 sales is 435, budget for Jan-10 and Feb-10 was 409, forecast for March was 435. Any suggestions?

Thanks