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: 
varmekontrol
Creator
Creator

Multiple Dimensions in Pie Chart

Hi

I have 3 Pie Charts, that each represent a different dimension. Those Dimensions are used with a timestamp as a measure.

Dim 1,
Dim 2,
Dim 3,
TimeStamp

PieChart.JPG

What I need to figure out, is how I can get the 3 dimensions combined so I can calculate the AVG of the 3 dimensions. 

1 Solution

Accepted Solutions
varmekontrol
Creator
Creator
Author

I found a solution using the Load script and creating a new dimension

Dim1&' '&Dim2&' '& Dim3 as DimensionForPieChart 

 

Udklip.JPG

View solution in original post

5 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

You could do something along the lines of this pattern:

=RangeAvg(<measure for pie 1>, <measure for pie 2>,....)

There may be a more efficient way, but it depends on the expression for the measures.

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

Maybe, but could you please dumb it down a bit 🙂
I am not a specialist in Qlik sense (yet) 

So you were thinking a dimension consisting of

=RangeAvg(<if(dim1=''timestamp>, <if(dim2=''timestamp>,<if(dim3=''timestamp>)

jonathandienst
Partner - Champion III
Partner - Champion III

Its not really possible to be more specific without a lot more information from your side - dimensions and measure for each pie and the output values that you expect. Is timestamp a field, a variable or a literal?

I was thinking of that as a measure - and it is a pattern, so replace the <....> with the relevant expressions from your side. if all the dimensions are the same, then use the same dimension again for the average.

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

I found a solution using the Load script and creating a new dimension

Dim1&' '&Dim2&' '& Dim3 as DimensionForPieChart 

 

Udklip.JPG

sam_8x
Contributor
Contributor

what the script you wrote for this solution? 
please I need it in detail.