Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to show highest Risk . Part 2

In the last question , you guys helped me with this . Luis, and other friends.

As shown in the picture. Apple belongs to different sectors but calcuation FirstSortedValue(Risk,-Level) skips some of apple. i am having this same issue.

Also i want to be able to show and divide by sectors . Later on I will be making a pie chart that shows sectors and their risk ratings based on their seller symbols.

  

Seller SymbolSectorRiskLevel
SyscoFoodHigh3
Baskin RobbinsFoodLow1
MethodistHealthVery High4
DillardsRetailMedium1
AppleWholeSaleHigh3
AppleRetailMedium1
MethodistFoodLow1
MethodistHealthHigh3
WWERetailMedium1
Shop N SaveFoodHigh3
KrogerHealthHigh3
Hermann RetailVery High4
Baskin RobbinsWholeSaleMedium1
MethodistRetailHigh3
DillardsFoodMedium1
AppleHealthLow1
AppleRetailVery High4
Baskin RobbinsWholeSaleMedium1
MethodistRetailHigh3
DillardsHealthMedium1
AppleRetailVery High4
Baskin RobbinsWholeSaleMedium1
MethodistRetailHigh3
DillardsHealthVery High4
AppleRetailMedium1
Baskin RobbinsWholeSaleVery High4
MethodistRetailMedium1
DillardsFoodHigh3
AppleHealthMedium1
Baskin RobbinsRetailLow1
MethodistWholeSaleVery High4
DillardsHealthMedium1
AppleRetailHigh3
AppleWholeSaleMedium1
MethodistRetailLow1
MethodistFoodHigh3
MethodistHealthMedium

1

3 Replies
luismadriz
Specialist
Specialist

Hi Mike,

Create first two dimensions:Seller Symbol and Sector, then this dimension:

=Aggr(FirstSortedValue(DISTINCT Risk,-Level),[Seller Symbol],Sector)

Please confirm is this is what you're after in terms of the data

Cheers,

Luis

Untitled.png

tamilarasu
Champion
Champion

Hi Mike,

Try this,

Aggr(FirstSortedValue(Distinct Risk,-Pick(Match(Risk,'Low','Medium','High','Very High'),1,2,3,4)),[Seller Symbol],Sector)

Anonymous
Not applicable
Author

I used the calculation. it works fine on qlik desktop but is not showing up on qlikview server.

I used this in a pie chart to be clear.

I used that calculation as a calculated dimension and for expression did a count.