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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Straight table blank fields - using set analysis

HI all

I am having issues with a table. I cant make data show in Avg B or Avg C columns. The data only appears in Avg B or Avg A when i select an individual month using a 'Month' List box.

I can't understand why i have to select a month for the data to appear.

MonthAvg AAvg BAvg C
Dec11652889827
Jul12598--
Jun12605--
Aug12685--

Avg A formula = Avg(Rank_1_Premium)

Avg B formula = avg(aggr(Max({$<[Insurer]={'eCar'},[Premium]={'<99999'}>} [Premium]) ,RiskNo))

Avg C formula = avg(aggr(Max({$<[Insurer]={'Asda OE'},[Premium]={'<99999'}>} [Premium]) ,RiskNo))  

Can you help?

J

 

15 Replies
whiteline
Master II
Master II

Your data that you use to calculate this expression.

The numers and string values are obsolete you can scrable them.

The table structure is important.

whiteline
Master II
Master II

Obviusly the problem is in wrong aggregation.

One right result can be explaind easily.

Possible there is only one record of RiskNo in Dec11.

Not applicable
Author

Here is the test data

whiteline
Master II
Master II

Oh, I've got it.

You discard Month dimension during aggregation.

Use this kind expression:

=avg(aggr(Max([Premium]) ,RiskNo, Month))

Not applicable
Author

Perfect!!

thanks for your help. I knew it would be something as simple as that.

But as they say, it's not simple unless you know how!!

Thanks!!!

whiteline
Master II
Master II

You are welcome.

Sorry, for so long way.

Just check the right answer to close the question.