Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression col outside of group

Hi All,

struggling to achive some functionality. Looks like below.

                                                                       Group Dimension -------------------------------------------------->

Dimension 1  ¦  Dimension 2 ¦ Col Expression1 ¦ Col Expression2 ¦ Col Expression2 ¦ Col Expression2

So basically, i dont want Col expression1 to be grouped. Possible?

Labels (1)
1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, you can try using two calculated dimensions for the 12wk Avg and 4wk Avg columns. If you have a Date field then those expressions would look something like this:

aggr(avg({<Date={'>$(=max(Date)-84)<=$(=max(Date))'}>}Value),Supplier,Product)

aggr(avg({<Date={'>$(=max(Date)-28)<=$(=max(Date))'}>}Value),Supplier,Product)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
MK_QSL
MVP
MVP

May be you can use Col Expression 1 as a Calculated Dimension with Aggr in Pivot Table.

But without looking your sample file or application, difficult to give an accurate reply.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

I'm afraid I don't understand what you're trying to do. Can you give an example? Perhaps a mockup of the result in an excel file?


talk is cheap, supply exceeds demand
Not applicable
Author

sure, the expressions are averages based on a dynamic date range, The grouping effectively provides the detail.

sample qlik doc.PNG

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, you can try using two calculated dimensions for the 12wk Avg and 4wk Avg columns. If you have a Date field then those expressions would look something like this:

aggr(avg({<Date={'>$(=max(Date)-84)<=$(=max(Date))'}>}Value),Supplier,Product)

aggr(avg({<Date={'>$(=max(Date)-28)<=$(=max(Date))'}>}Value),Supplier,Product)


talk is cheap, supply exceeds demand
Not applicable
Author

Perfect! Thank you Gysbert!