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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
sculptorlv
Creator III
Creator III

Minumal value with certain criteria

Hello!

The problem is...

I have the chart in my qlikview report:

     

NumberNameTypeQPrice
1913654GAIDA SIAC-AULIKA 80
1913654GAIDA SIAC-PHEDRA177
1913654GAIDA SIAC-PHEDRA350
1913654GAIDA SIAC-PHEDRA445
1913654GAIDA SIAC-PHEDRA50

I can make an agrregation function to get minimal value for each Type:

=Aggr(MAX(Price,),Type) - the result is:

      

NumberNameTypeQPriceAggre
1913654GAIDA SIAC-AULIKA 8080
1913654GAIDA SIAC-PHEDRA17777
1913654GAIDA SIAC-PHEDRA35077
1913654GAIDA SIAC-PHEDRA44577
1913654GAIDA SIAC-PHEDRA5077

Now,

I need to get similar formula to get MAX value for TYPE, where Q <=3 The result should be:

      

NumberNameTypeQPriceAggre
1913654GAIDA SIAC-AULIKA 8080
1913654GAIDA SIAC-PHEDRA17750
1913654GAIDA SIAC-PHEDRA35050
1913654GAIDA SIAC-PHEDRA44550
1913654GAIDA SIAC-PHEDRA5050

How can I make such function??

Thank you in advance!!

12 Replies
sculptorlv
Creator III
Creator III
Author

Really TNAK YOU!!

Something absolutely new for me ...

sculptorlv
Creator III
Creator III
Author

Uhh... I forgot..   this number 3 is calculated value!!

sum(IF(InMonth(Bouth__PostingDate,Today(),-1),Bouth_Cofee_Item_Quantity,0))

Is it possible to migrate it in previous formula

sunny_talwar

Now you made it really complicated

Would it be possible to share a sample to check it out?

Preparing examples for Upload - Reduction and Data Scrambling