Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sibrulotte
Creator III
Creator III

AGGR() on Only ()

Hi,

I have this set analysis

=aggr((only({< Année = {'2016','2017'}, [Statut de la commande] -={'4'}>}[Quantité requise]) - only({< Année = {'2016','2017'}, [Statut de la commande] -={'4'}>}[Quantité reçue])) *

only({< Année = {'2016','2017'}, [Statut de la commande] -={'4'}>}[Prix unitaire réception]), Nom, [Description du bon de commande], ld)

Basically:

For a Supplier (Nom), that has an order (Description du bon de commande), there are items (ld).

For each item I want to substract what I have received to what I ordered, and multiply that by unit price.

I thought AGGR would return the sum for the supplyer. But that only works if there are item per order...

What should I be doing?

I don't want to rework the model right now.

1 Solution

Accepted Solutions
sibrulotte
Creator III
Creator III
Author

AH HELL NO...

I just added a sum in front to get what I wanted ... never mind...

View solution in original post

1 Reply
sibrulotte
Creator III
Creator III
Author

AH HELL NO...

I just added a sum in front to get what I wanted ... never mind...