Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
chanin7893
Partner - Contributor III
Partner - Contributor III

Nested Aggregation Function

Hello All,

I want the correct expression containing the AGGR Function for the given query.

Tried a few things but it didn't work out.

I'm posting the example below.

Sum[Count( Distinct (mobilecode))/Count(Distinct (routecode))]


Where mobilecode and routecode are field names.


Thanks In Advance.

11 Replies
MK_QSL
MVP
MVP

It's upto where exactly you are using it !

Can you provide some more information on it?

Where you are using this expression?

If possible, provide sample data.

petter
Partner - Champion III
Partner - Champion III

As I mentioned the answer depends on the context. What do you want to show and where do you want to show it?

In a KPI a single number or in a table with multiple rows?

Yes you can in certain situations get the calculation without using Aggr. You can do it if the inner aggregation use the TOTAL qualifier alone.

Gives us some sample data and an explanation on what you want to see ....