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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Dolly123
Creator II
Creator II

set analysis

Qlikhub_0-1673255137761.png

i need top 3 segments with last 6 month (rolling) in set analysis

 

9 Replies
Mark_Little
Luminary
Luminary

HI

You will need to share a little more information. Where are you currently i.e. What set analysis is in the chart shown? What have you tired? where are you stuck? 

Dolly123
Creator II
Creator II
Author

=sum({< FiscalYear=, FiscalMonthName=, Date={"$(='>='& Date(Monthstart(max(Date),-6))&'<'&Date(Monthstart(max(Date))))"}>}[Capacity (TR/HP)])

 

this set is for 6 months but i want top 3 also in this set analysis in qliksense

salonicdk28
Creator II
Creator II

Hi, write a calculated dimension for top 3 segments like below along with your above expression in measure-

aggr(if(rank(Sum(Capacity (TR/HP)<=3,segment),segment)

Dolly123
Creator II
Creator II
Author

Qlikhub_0-1673260738029.png

i am getting error

Dolly123
Creator II
Creator II
Author

i want to show same chart as last 6 month also how both can implement

salonicdk28
Creator II
Creator II

You haven't closed the sum bracket, try this once

aggr(if(rank(Sum([Capacity (TR/HP)]))<=3,segment),segment)

salonicdk28
Creator II
Creator II

Rank and sum bracket need to be closed, that's why getting an error there

Dolly123
Creator II
Creator II
Author

same error

Dolly123
Creator II
Creator II
Author

I do but no data present in chart and also i need last 6 month with top 3 segments