Skip to main content
Announcements
Jan 15, Trends 2025! Get expert guidance to thrive post-AI with After AI: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
mb_me
Contributor II
Contributor II

Question: Creating a calculated measure from a dimension

Hi everyone, new here and first of what I'm sure will be many questions from me.

I have an app which contains a dimension called 'elapsed time until...'. What I need is a way to calculate what the average is of that dimension.

Specifically, I have transaction data which can be categorized by Team, Case #, case rating, and elapsed time until first reply.

I need the average elapsed time until first reply by team and average elapsed time for each possible rating. 

Any hints? Thanks in advance everyone.

Labels (3)
1 Solution

Accepted Solutions
mb_me
Contributor II
Contributor II
Author

Thank you for the quick reply! I figured out my answer. The dimension "elapsed time" was a calculation off multiple fields, as you were saying. So I opened the expression editor and copied the function. Adding it as a measure (so I could do the avg function), I just opened the expression editor again in the measures area and simply added the 'avg' function to the beginning of it all. 

 

Thank you for the support - this got me heading down the right path 🙂

View solution in original post

2 Replies
hic
Former Employee
Former Employee

You have a field called "Elapsed time". If you use this in a chart (bar chart, table, etc.), you can get what you want. Probably, you should choose "Team" as chart dimension, and Avg("Elapsed time") as measure in the chart. 

So, a field is really not a dimension unless you use it as such in a chart.

See also https://community.qlik.com/t5/Design/Dimensions-and-Measures/ba-p/1473017

mb_me
Contributor II
Contributor II
Author

Thank you for the quick reply! I figured out my answer. The dimension "elapsed time" was a calculation off multiple fields, as you were saying. So I opened the expression editor and copied the function. Adding it as a measure (so I could do the avg function), I just opened the expression editor again in the measures area and simply added the 'avg' function to the beginning of it all. 

 

Thank you for the support - this got me heading down the right path 🙂