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: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Front End Calculations SET, AGGR, IF?

Cheers people

I am facing an issue while trying to calculate this on the front end this type of results.

The income data is A:C - result E:G columns.

I need to COUNT the DISTINCT number of Barcodes according to the Manufacture minimal Rating.

MindaugasBacius_0-1714477727496.png

Manufacturer Rating Barcode
A 1 1
A 1 1
A 2 3
A 2 4
A 4 5
B 2 6
B 2 6
B 2 8
B 3 9
C 1 10
C 2 11
C 3 12

 

Thank you in advance for helping me out!

 

Labels (5)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

As below

 

=Count(Distinct Aggr (if(Rating=min(total <Manufacturer> Rating), Barcode),Manufacturer,Rating,Barcode))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

4 Replies
M_L
Contributor
Contributor

This should work:

sum(aggr(min(Rating),Manufacturer))

You can hide 0 values from your table, or exclude them in your expression if you don't want to see them in your table.

MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

Yet I need COUNT IDTSINCT of Barcodes.

vinieme12
Champion III
Champion III

As below

 

=Count(Distinct Aggr (if(Rating=min(total <Manufacturer> Rating), Barcode),Manufacturer,Rating,Barcode))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

@vinieme12 you're a champ! 🙂