Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression help

Hi,

I got this expression which return the right figures to me (so far so good)

sum(aggr(sum({<Crop={'*'}>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

I have a field/filter called 'CPM'

How do I implement that the figues returned from the expressions will be the same no matter what I select in 'CPM' ?

In other words: No mater what I select using CPM filter the figures calculated in my expression wont change.

Thanks in advance,

Kenneth

1 Solution

Accepted Solutions
sunny_talwar

Try this:

=Sum({<CPM = >}Aggr(Sum({<Crop={'*'}, CPM =>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

View solution in original post

5 Replies
maximiliano_vel
Partner - Creator III
Partner - Creator III

Try

=sum(aggr(sum({<Crop={'*'}, CPM>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

sunny_talwar

Try this:

=Sum({<CPM = >}Aggr(Sum({<Crop={'*'}, CPM =>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

maxgro
MVP
MVP

try to disregard the filter on CPM

sum(aggr(sum({<Crop={'*'},CPM=>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

awhitfield
Partner - Champion
Partner - Champion

HI Kenneth,

try this:

sum(aggr(sum({<Crop={'*'},CPM=>} distinct AREAL),UNIQ_NO,KorrAfgrødeUK))

Andy

awhitfield
Partner - Champion
Partner - Champion

That looks pretty conclusive! Ha ha!

Andy