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: 
qlikwiz123
Creator III
Creator III

Line chart without measure functions in expression

I am trying to create a line chart with two dimensions and one expression.

Dimensions are WeekStart(Date) and Type

Expression is NumberX * [Total Value]

 

This gives me No data to display. But writing my expression as Sum(NumberX * [Total Value]) gives the line chart. But doing a Sum gives incorrect values. 

How do I use my NumberX * [Total Value] in Expression without using Sum or Count or any other aggregating measure function?

Labels (1)
  • line

1 Solution

Accepted Solutions
MayilVahanan

Hi @qlikwiz123 

Try like below

Sum(NumberX) * Sum([Total Value])

If both fields are in same table, you can try Sum(NumberX * [Total Value]).

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

i would check your values.

what this generally indicates that there is more than 1 value of NumberX or/and [Total Value] for weekstart and type combination.

my educated guess is this

i think you have data like below 

  
DateValue
2-Nov-202010
3-Nov-202020
4-Nov-20205
9-Nov-202030

 

so what happens when you have a dimension WeekStart(Date) is you get 3 values for 1-Nov-2020 (10,20,5)

this will not work.

And it will need some aggregation (sum or otherwise).

 

Share some sample data and example of desired output

MayilVahanan

Hi @qlikwiz123 

Try like below

Sum(NumberX) * Sum([Total Value])

If both fields are in same table, you can try Sum(NumberX * [Total Value]).

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.