Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem with aggregation formula (table)

Hello

I would like to ask how can I “repeat” the same number , which is an aggregation of total skus per stores, to the entire table.

On my QV I have the following:

Brand        =avg(aggr(count({< Subsegment, Manufacturer, Brand>} EanCode), Store))

A                  226

B                    -

C                    -

And what I really want is this:

Brand        =avg(aggr(count({< Subsegment, Manufacturer, Brand>} EanCode), Store))

A                   226

B                   226

C                   226

Thank you very much beforehand.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

NODISTINCT keyword.

=avg(aggr( NODISTINCT count({< Subsegment, Manufacturer, Brand>} EanCode), Store))

View solution in original post

4 Replies
tresesco
MVP
MVP

NODISTINCT keyword.

=avg(aggr( NODISTINCT count({< Subsegment, Manufacturer, Brand>} EanCode), Store))

PrashantSangle


Hi,

Try with putting Brand in AGGR()

Like

avg(aggr(count({< Subsegment, Manufacturer, Brand>} EanCode), Store,Brand))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

hi

try this

=avg(aggr(nodistinct  count({<Subsegment,Manufacturer,Brand>} EanCode),Store))


Not applicable
Author

Thank you very much, it did work perfectly!