Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Jeremy
New Contributor II

Comparing values

Hi,

This is one of 4 benchmarks loaded from excel file and it is not linked to other tables.

BenchmarkMinValueMaxValueRate
Production100 10
Production9099,999
Production8089,998
Production7079,997
Production6069,996
Production5059,995
Production4049,994
Production3039,993
Production2029,992

 

Before devoloping app any further, I need some help with set analysis(?).

How to get the rate to straight table without using any selections?

This simple calculations works when using more dimensions but that is not the solution:

if(Sum(ProductionValue)/sum(Hours)>=MinValue and Sum(ProductionValue)/sum(Hours)<=MaxValue, Rate)

 

WeekSum(ProductionValue)/sum(Hours)Rate
3317,75-
3490,70-
1 Solution

Accepted Solutions
Jeremy
New Contributor II

Re: Comparing values

Thanks! I haven't seen that link before about set analysis.

 

Anyway, FirstSortedValue with if, did the trick and app is working.

4 Replies
Jeremy
New Contributor II

Re: Comparing values

Anyone?

Jeremy
New Contributor II

Re: Comparing values

Some progress...

I got rate 9 for week 34 by using FirstSortedValue. Still have to find out how to get the rate if value is below range.

 

FirstSortedValue(Rate,
aggr(if(Sum(ProductionValue)/sum(Hours)>=MinValue,-MinValue),Week,Rate))

Support
Support

Re: Comparing values

Here is a Design Blog link that may help you further with things:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

There are some additional/related links at the bottom of that post, just FYI.  

Here is Help link:

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

This will kick things again, someone else may have some further guidance as well.

Regards,
Brett

To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.
Jeremy
New Contributor II

Re: Comparing values

Thanks! I haven't seen that link before about set analysis.

 

Anyway, FirstSortedValue with if, did the trick and app is working.