Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

2 dimension with 3 expression

Hi every one,

I want create a Line chart with 2 dimension ; Year & Month and 3 expression .

I want when i choose 2 years from year listbox , in chart i see 6 trends

Dimension axis show month of year and Expression axis show 6 trend line ; for each expression we have 2 trend line.

How can i do this ?

With Best Regards

Hamide

2 Replies
Gysbert_Wassenaar

That's not possible. A line chart can have only two dimensions and one expression or multiple expression with a single dimension. You'll have to either use two charts or combine the two dimensions into one: =DimA & '-' & DimB


talk is cheap, supply exceeds demand
stigchel
Partner - Master
Partner - Master

Hi Hamide,

If you want to see six lines, you can't do that with two dimensions and three expressions. You can use six expressions (or more when more years are selected) and use for example the following in each of the two sets of three:

1st set

Sum({<Year={'$(=Max(Year))'}>} Sales)

2nd set

Sum({<Year={'$(=Max(Year,2))'}>} Sales)

...