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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
eddywong71
Creator
Creator

Decile Analysis compare with last year

Hi All,

I am using this set expression for current year and last year

=Aggr(
Ceil(Rank(Sum($Profit),4,1) / count($DISTINCT TOTAL Customer), 0.1) * 10
, Customer) 

Last year

=Aggr(
Ceil(Rank(Sum($Profit_Last_Year),4,1) / count($DISTINCT TOTAL Customer), 0.1) * 10
, Customer)

 Table as below

decile1.PNG

However, I want create a two column on Past 12 Month. Upgrade and downgrade for example select 20% from Past 12 Month. Upgrade =  138+.....+24 and Downgrade = 119. How can I create a set expression for Upgrade and downgrade.

decil2.PNG

Can anyone help ?

 

Labels (1)
4 Replies
vinieme12
Champion III
Champion III

Try Fractile()

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

 

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

Hi Vinieme12, would you provide more detail on how to write a set expression by using Fractile() can auto calculate Upgrade and downgrade in auto when select from Past 12 Month  . 

eddywong71
Creator
Creator
Author

Can anyone help 🙌

vinieme12
Champion III
Champion III

can you post a sample app?

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