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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
paul_ripley
Creator III
Creator III

Expression set analysis and renaming values

Hello

The set analysis below, will bring back results for any portfolio where the GBP proce eds is > 500,000 (excluding portfolio 22701282).

I would like to amend it slightly, so that the below is still correct but with the additional criteria that any portfolio with proceeds < 500,000 is also included but they are grouped together and renamed as 'Other'

Sum(Aggr(

If(Sum({<proceeds = {'Proceeds'},period = {">=$(vStartPeriod_CY)<=$(vEndPeriod_CY)"}, portfolio -= {22701282}>} [GPR GBP]) * -1 > 500000, Round(Sum({<proceeds = {'Proceeds'},period = {">=$(vStartPeriod_CY)<=$(vEndPeriod_CY)"}, portfolio -= {22701282}>} [GPR GBP]) * -1, 1E6))

,
bussline_reclass, portfolio, portfolio_text))/1000000

For example below currently below I would only return Prisa and SLR.  I would like to group the rest to be called 'Other' as they are less than 500,000

Could anyone help with this?

Many thanks

Paul

1 Solution

Accepted Solutions
rick_vansoest
Partner - Contributor III
Partner - Contributor III

It had some trouble with the , in the 500,000

Replaced the old dimensions with the new ones:

Capture1.PNG

This calculation is working for me:

=IF( AGGR(

(sum({<entity -= {"0148"},pl -={"X01*"}, proceeds = {"Proceeds"}, period = {">=$(vStartPeriod_CY)<=$(vEndPeriod_CY)"},portfolio -= {22701282} > } [GPR GBP])*-1)

, portfolio) >= 500000 , portfolio, 'Others')

you could do the same for portfolio_text and Money Multiple (GBP) Depending on the requirements.

Final result:

Capture2.PNG

View solution in original post

15 Replies
rick_vansoest
Partner - Contributor III
Partner - Contributor III

Just set Dimension Limits?

Capture.PNG

Or you could create a calculated dimension? Something like:

IF( AGGR(


//Your measure

, [Dimension Field]) <= 500,000 , [Dimension Field] ,'OTHERS')

sunny_talwar

I think this would need you to use calculated dimension instead of set analysis here... would you be able to share a sample to help you better here

paul_ripley
Creator III
Creator III
Author

Hi Sunny

How is the best way to share this?

Thanks

Paul

paul_ripley
Creator III
Creator III
Author

Hi Sunny

Hopefully you can use the attached

Thanks

Paul

sunny_talwar

You were not able to reduce it down any further ...

sunny_talwar

Which chart am I looking at? This one?

Capture.PNG

paul_ripley
Creator III
Creator III
Author

Yes that is the one, thanks.  I Just did the reduce data thing

paul_ripley
Creator III
Creator III
Author

sorry for delay in replying. I don't seem to get emails when I get a reply