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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% change

hi I do have a a requirement where I need count of products if the % increase based on certain threshold limit, the issue is with underlying data.

Consider below example as you can se I have 3 dimensions Country, Rating and Product and each Country has  several ratings based on product.so my requirement is to show Count of products if it % increase on a certain threshold limit and rating.

      

CountryRatingProductCurrent priceToday Price% Diff
ChinaAC123100101-0.99%
ChinaAC45699102-2.94%
ChinaCC789101103-1.94%
IndiaAI1239699-3.03%
IndiaBI45681792.53%
IndiaBI78980800.00%
DenmarkAD1231211191.68%
DenmarkBD4561911891.06%
ThailandBT7892512490.80%
ThailandCT4561221201.67%

For example I want count of products for Rating A if %increase >.5% for B >1% and for C >.25% so for Rating A and country India I need to show only 1 and for Denmark need to show 2(1 for rating A and 1 for rating B) so on...

Challenge is show I need only country and count of Products> Threshold limits not Rating column in the table without rating column.

Please help.

1 Reply
antoniotiman
Master III
Master III

Hi,

Try to add Calculated Dimension like this

=Aggr(If((Rating = 'A' and ([Current price]-[Today Price])/[Today Price] >= 0.005)
or (Rating = 'B' and ([Current price]-[Today Price])/[Today Price] >= 0.01)
or (Rating = 'C' and ([Current price]-[Today Price])/[Today Price] >= 0.0025),Country)
,Country,Rating,Product)

and Expression Count(Distinct Product)

Regards,

Antonio