It is currently October 21st, 2019, 4:05 am

Sorter

Tips and Tricks from the Rainmeter Community
User avatar
balala
Rainmeter Sage
Posts: 8871
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Sorter

balala » February 24th, 2015, 9:28 pm

This code can sort a list of up to 10 numbers (measures, in this code, named MeasureNum1, MeasureNum2, ..., MeasureNum10) ascending or descending. This case the measures have randomly generated values, between -10 and 10, but obviously here can be used any measure which returns numbers (not necesarely between -10 and 10), eg WebParser measures. The bounds of the randomly generated numbers can be controled by the LB and HB variables. The code uses pure Rainmeter measures, without lua or any other kind of support.
In the first line you see the randomly generated numbers, in the second the sorted list. With a click to the first line you can generate other numbers and with one to the second line, you can change the sorting order.
Feel free to add your comments, I'd be courious about your oppinion.

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=80,80,80,220
AccurateText=1
DynamicWindowSize=1

[Variables]
LB=-10
HB=10
Asc=1

[MeasureNum1]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum2]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum3]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum4]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum5]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum6]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum7]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum8]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum9]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureNum10]
Measure=Calc
Formula=Random
LowBound=#LB#
HighBound=#HB#
UpdateDivider=-1
UpdateRandom=1

[MeasureExtreme]
Measure=Calc
Formula=( #Asc# ? (( Max ( MeasureNum1, ( Max ( MeasureNum2, ( Max ( MeasureNum3, ( Max ( MeasureNum4, ( Max ( MeasureNum5, ( Max ( MeasureNum6, ( Max ( MeasureNum7, ( Max ( MeasureNum8, ( Max ( MeasureNum9, MeasureNum10 )))))))))))))))))) + 1 ) : (( Min ( MeasureNum1, ( Min ( MeasureNum2, ( Min ( MeasureNum3, ( Min ( MeasureNum4, ( Min ( MeasureNum5, ( Min ( MeasureNum6, ( Min ( MeasureNum7, ( Min ( MeasureNum8, ( Min ( MeasureNum9, MeasureNum10 )))))))))))))))))) - 1 ))
DynamicVariables=1

[Measure1st]
Measure=Calc
Formula=( #Asc# ? ( Min ( MeasureNum1, ( Min ( MeasureNum2, ( Min ( MeasureNum3, ( Min ( MeasureNum4, ( Min ( MeasureNum5, ( Min ( MeasureNum6, ( Min ( MeasureNum7, ( Min ( MeasureNum8, ( Min ( MeasureNum9, MeasureNum10 )))))))))))))))))) : ( Max ( MeasureNum1, ( Max ( MeasureNum2, ( Max ( MeasureNum3, ( Max ( MeasureNum4, ( Max ( MeasureNum5, ( Max ( MeasureNum6, ( Max ( MeasureNum7, ( Max ( MeasureNum8, ( Max ( MeasureNum9, MeasureNum10 )))))))))))))))))))
DynamicVariables=1

[Measure1stSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure1st ) ? 1 : (( MeasureNum2 = Measure1st ) ? 2 : (( MeasureNum3 = Measure1st ) ? 3 : (( MeasureNum4 = Measure1st ) ? 4 : (( MeasureNum5 = Measure1st ) ? 5 : (( MeasureNum6 = Measure1st ) ? 6 : (( MeasureNum7 = Measure1st ) ? 7 : (( MeasureNum8 = Measure1st ) ? 8 : (( MeasureNum9 = Measure1st ) ? 9 : 10 )))))))))

[Measure1stCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure1st ) + ( MeasureNum2 = Measure1st ) + ( MeasureNum3 = Measure1st ) + ( MeasureNum4 = Measure1st ) + ( MeasureNum5 = Measure1st ) + ( MeasureNum6 = Measure1st ) + ( MeasureNum7 = Measure1st ) + ( MeasureNum8 = Measure1st ) + ( MeasureNum9 = Measure1st ) + ( MeasureNum10 = Measure1st ))

[Measure1stSorted]
Measure=Calc
Formula=Measure1st

[Measure2nd]
Measure=Calc
Formula=( #Asc# ? ( Min ((( MeasureNum1 = Measure1st ) ? MeasureExtreme : MeasureNum1 ), ( Min ((( MeasureNum2 = Measure1st ) ? MeasureExtreme : MeasureNum2 ), ( Min ((( MeasureNum3 = Measure1st ) ? MeasureExtreme : MeasureNum3 ), ( Min ((( MeasureNum4 = Measure1st ) ? MeasureExtreme : MeasureNum4 ), ( Min ((( MeasureNum5 = Measure1st ) ? MeasureExtreme : MeasureNum5 ), ( Min ((( MeasureNum6 = Measure1st ) ? MeasureExtreme : MeasureNum6 ), ( Min ((( MeasureNum7 = Measure1st ) ? MeasureExtreme : MeasureNum7 ), ( Min ((( MeasureNum8 = Measure1st ) ? MeasureExtreme : MeasureNum8 ), ( Min ((( MeasureNum9 = Measure1st ) ? MeasureExtreme : MeasureNum9 ), (( MeasureNum10 = Measure1st ) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max ((( MeasureNum1 = Measure1st ) ? MeasureExtreme : MeasureNum1 ), ( Max ((( MeasureNum2 = Measure1st ) ? MeasureExtreme : MeasureNum2 ), ( Max ((( MeasureNum3 = Measure1st ) ? MeasureExtreme : MeasureNum3 ), ( Max ((( MeasureNum4 = Measure1st ) ? MeasureExtreme : MeasureNum4 ), ( Max ((( MeasureNum5 = Measure1st ) ? MeasureExtreme : MeasureNum5 ), ( Max ((( MeasureNum6 = Measure1st ) ? MeasureExtreme : MeasureNum6 ), ( Max ((( MeasureNum7 = Measure1st ) ? MeasureExtreme : MeasureNum7 ), ( Max ((( MeasureNum8 = Measure1st ) ? MeasureExtreme : MeasureNum8 ), ( Max ((( MeasureNum9 = Measure1st ) ? MeasureExtreme : MeasureNum9 ), (( MeasureNum10 = Measure1st ) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure2ndSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure2nd ) ? 1 : (( MeasureNum2 = Measure2nd ) ? 2 : (( MeasureNum3 = Measure2nd ) ? 3 : (( MeasureNum4 = Measure2nd ) ? 4 : (( MeasureNum5 = Measure2nd ) ? 5 : (( MeasureNum6 = Measure2nd ) ? 6 : (( MeasureNum7 = Measure2nd ) ? 7 : (( MeasureNum8 = Measure2nd ) ? 8 : (( MeasureNum9 = Measure2nd ) ? 9 : 10 )))))))))

[Measure2ndCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure2nd ) + ( MeasureNum2 = Measure2nd ) + ( MeasureNum3 = Measure2nd ) + ( MeasureNum4 = Measure2nd ) + ( MeasureNum5 = Measure2nd ) + ( MeasureNum6 = Measure2nd ) + ( MeasureNum7 = Measure2nd ) + ( MeasureNum8 = Measure2nd ) + ( MeasureNum9 = Measure2nd ) + ( MeasureNum10 = Measure2nd ))

[Measure2ndSorted]
Measure=Calc
Formula=(( Measure1stCount > 1 ) ? Measure1st : Measure2nd )

[Measure3rd]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure3rdSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure3rd ) ? 1 : (( MeasureNum2 = Measure3rd ) ? 2 : (( MeasureNum3 = Measure3rd ) ? 3 : (( MeasureNum4 = Measure3rd ) ? 4 : (( MeasureNum5 = Measure3rd ) ? 5 : (( MeasureNum6 = Measure3rd ) ? 6 : (( MeasureNum7 = Measure3rd ) ? 7 : (( MeasureNum8 = Measure3rd ) ? 8 : (( MeasureNum9 = Measure3rd ) ? 9 : 10 )))))))))

[Measure3rdCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure3rd ) + ( MeasureNum2 = Measure3rd ) + ( MeasureNum3 = Measure3rd ) + ( MeasureNum4 = Measure3rd ) + ( MeasureNum5 = Measure3rd ) + ( MeasureNum6 = Measure3rd ) + ( MeasureNum7 = Measure3rd ) + ( MeasureNum8 = Measure3rd ) + ( MeasureNum9 = Measure3rd ) + ( MeasureNum10 = Measure3rd ))

[Measure3rdSorted]
Measure=Calc
Formula=(( Measure1stCount > 2 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 2 ) ? Measure2nd : Measure3rd ))

[Measure4th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure4thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure4th ) ? 1 : (( MeasureNum2 = Measure4th ) ? 2 : (( MeasureNum3 = Measure4th ) ? 3 : (( MeasureNum4 = Measure4th ) ? 4 : (( MeasureNum5 = Measure4th ) ? 5 : (( MeasureNum6 = Measure4th ) ? 6 : (( MeasureNum7 = Measure4th ) ? 7 : (( MeasureNum8 = Measure4th ) ? 8 : (( MeasureNum9 = Measure4th ) ? 9 : 10 )))))))))

[Measure4thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure4th ) + ( MeasureNum2 = Measure4th ) + ( MeasureNum3 = Measure4th ) + ( MeasureNum4 = Measure4th ) + ( MeasureNum5 = Measure4th ) + ( MeasureNum6 = Measure4th ) + ( MeasureNum7 = Measure4th ) + ( MeasureNum8 = Measure4th ) + ( MeasureNum9 = Measure4th ) + ( MeasureNum10 = Measure4th ))

[Measure4thSorted]
Measure=Calc
Formula=(( Measure1stCount > 3 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 3 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 3 ) ? Measure3rd : Measure4th )))

[Measure5th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure5thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure5th ) ? 1 : (( MeasureNum2 = Measure5th ) ? 2 : (( MeasureNum3 = Measure5th ) ? 3 : (( MeasureNum4 = Measure5th ) ? 4 : (( MeasureNum5 = Measure5th ) ? 5 : (( MeasureNum6 = Measure5th ) ? 6 : (( MeasureNum7 = Measure5th ) ? 7 : (( MeasureNum8 = Measure5th ) ? 8 : (( MeasureNum9 = Measure5th ) ? 9 : 10 )))))))))

[Measure5thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure5th ) + ( MeasureNum2 = Measure5th ) + ( MeasureNum3 = Measure5th ) + ( MeasureNum4 = Measure5th ) + ( MeasureNum5 = Measure5th ) + ( MeasureNum6 = Measure5th ) + ( MeasureNum7 = Measure5th ) + ( MeasureNum8 = Measure5th ) + ( MeasureNum9 = Measure5th ) + ( MeasureNum10 = Measure5th ))

[Measure5thSorted]
Measure=Calc
Formula=(( Measure1stCount > 4 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 4 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 4 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount  + Measure4thCount ) > 4 ) ? Measure4th : Measure5th ))))

[Measure6th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure6thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure6th ) ? 1 : (( MeasureNum2 = Measure6th ) ? 2 : (( MeasureNum3 = Measure6th ) ? 3 : (( MeasureNum4 = Measure6th ) ? 4 : (( MeasureNum5 = Measure6th ) ? 5 : (( MeasureNum6 = Measure6th ) ? 6 : (( MeasureNum7 = Measure6th ) ? 7 : (( MeasureNum8 = Measure6th ) ? 8 : (( MeasureNum9 = Measure6th ) ? 9 : 10 )))))))))

[Measure6thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure6th ) + ( MeasureNum2 = Measure6th ) + ( MeasureNum3 = Measure6th ) + ( MeasureNum4 = Measure6th ) + ( MeasureNum5 = Measure6th ) + ( MeasureNum6 = Measure6th ) + ( MeasureNum7 = Measure6th ) + ( MeasureNum8 = Measure6th ) + ( MeasureNum9 = Measure6th ) + ( MeasureNum10 = Measure6th ))

[Measure6thSorted]
Measure=Calc
Formula=(( Measure1stCount > 5 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 5 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 5 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount ) > 5 ) ? Measure4th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount ) > 5 ) ? Measure5th : Measure6th )))))

[Measure7th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure7thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure7th ) ? 1 : (( MeasureNum2 = Measure7th ) ? 2 : (( MeasureNum3 = Measure7th ) ? 3 : (( MeasureNum4 = Measure7th ) ? 4 : (( MeasureNum5 = Measure7th ) ? 5 : (( MeasureNum6 = Measure7th ) ? 6 : (( MeasureNum7 = Measure7th ) ? 7 : (( MeasureNum8 = Measure7th ) ? 8 : (( MeasureNum9 = Measure7th ) ? 9 : 10 )))))))))

[Measure7thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure7th ) + ( MeasureNum2 = Measure7th ) + ( MeasureNum3 = Measure7th ) + ( MeasureNum4 = Measure7th ) + ( MeasureNum5 = Measure7th ) + ( MeasureNum6 = Measure7th ) + ( MeasureNum7 = Measure7th ) + ( MeasureNum8 = Measure7th ) + ( MeasureNum9 = Measure7th ) + ( MeasureNum10 = Measure7th ))

[Measure7thSorted]
Measure=Calc
Formula=(( Measure1stCount > 6 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 6 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 6 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount ) > 6 ) ? Measure4th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount ) > 6 ) ? Measure5th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount ) > 6 ) ? Measure6th : Measure7th ))))))

[Measure8th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure8thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure8th ) ? 1 : (( MeasureNum2 = Measure8th ) ? 2 : (( MeasureNum3 = Measure8th ) ? 3 : (( MeasureNum4 = Measure8th ) ? 4 : (( MeasureNum5 = Measure8th ) ? 5 : (( MeasureNum6 = Measure8th ) ? 6 : (( MeasureNum7 = Measure8th ) ? 7 : (( MeasureNum8 = Measure8th ) ? 8 : (( MeasureNum9 = Measure8th ) ? 9 : 10 )))))))))

[Measure8thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure8th ) + ( MeasureNum2 = Measure8th ) + ( MeasureNum3 = Measure8th ) + ( MeasureNum4 = Measure8th ) + ( MeasureNum5 = Measure8th ) + ( MeasureNum6 = Measure8th ) + ( MeasureNum7 = Measure8th ) + ( MeasureNum8 = Measure8th ) + ( MeasureNum9 = Measure8th ) + ( MeasureNum10 = Measure8th ))

[Measure8thSorted]
Measure=Calc
Formula=(( Measure1stCount > 7 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 7 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 7 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount ) > 7 ) ? Measure4th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount ) > 7 ) ? Measure5th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount ) > 7 ) ? Measure6th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount ) > 7 ) ? Measure7th : Measure8th )))))))

[Measure9th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th ) || ( MeasureNum1 = Measure8th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th ) || ( MeasureNum2 = Measure8th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th ) || ( MeasureNum3 = Measure8th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th ) || ( MeasureNum4 = Measure8th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th ) || ( MeasureNum5 = Measure8th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th ) || ( MeasureNum6 = Measure8th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th ) || ( MeasureNum7 = Measure8th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th ) || ( MeasureNum8 = Measure8th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th ) || ( MeasureNum9 = Measure8th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th ) || ( MeasureNum10 = Measure8th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th ) || ( MeasureNum1 = Measure8th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th ) || ( MeasureNum2 = Measure8th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th ) || ( MeasureNum3 = Measure8th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th ) || ( MeasureNum4 = Measure8th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th ) || ( MeasureNum5 = Measure8th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th ) || ( MeasureNum6 = Measure8th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th ) || ( MeasureNum7 = Measure8th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th ) || ( MeasureNum8 = Measure8th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th ) || ( MeasureNum9 = Measure8th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th ) || ( MeasureNum10 = Measure8th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure9thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure9th ) ? 1 : (( MeasureNum2 = Measure9th ) ? 2 : (( MeasureNum3 = Measure9th ) ? 3 : (( MeasureNum4 = Measure9th ) ? 4 : (( MeasureNum5 = Measure9th ) ? 5 : (( MeasureNum6 = Measure9th ) ? 6 : (( MeasureNum7 = Measure9th ) ? 7 : (( MeasureNum8 = Measure9th ) ? 8 : (( MeasureNum9 = Measure9th ) ? 9 : 10 )))))))))

[Measure9thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure9th ) + ( MeasureNum2 = Measure9th ) + ( MeasureNum3 = Measure9th ) + ( MeasureNum4 = Measure9th ) + ( MeasureNum5 = Measure9th ) + ( MeasureNum6 = Measure9th ) + ( MeasureNum7 = Measure9th ) + ( MeasureNum8 = Measure9th ) + ( MeasureNum9 = Measure9th ) + ( MeasureNum10 = Measure9th ))

[Measure9thSorted]
Measure=Calc
Formula=(( Measure1stCount > 8 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 8 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 8 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount ) > 8 ) ? Measure4th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount ) > 8 ) ? Measure5th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount ) > 8 ) ? Measure6th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount ) > 8 ) ? Measure7th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount  + Measure8thCount ) > 8 ) ? Measure8th : Measure9th ))))))))

[Measure10th]
Measure=Calc
Formula=( #Asc# ? ( Min (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th ) || ( MeasureNum1 = Measure8th ) || ( MeasureNum1 = Measure9th )) ? MeasureExtreme : MeasureNum1 ), ( Min (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th ) || ( MeasureNum2 = Measure8th ) || ( MeasureNum2 = Measure9th )) ? MeasureExtreme : MeasureNum2 ), ( Min (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th ) || ( MeasureNum3 = Measure8th ) || ( MeasureNum3 = Measure9th )) ? MeasureExtreme : MeasureNum3 ), ( Min (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th ) || ( MeasureNum4 = Measure8th ) || ( MeasureNum4 = Measure9th )) ? MeasureExtreme : MeasureNum4 ), ( Min (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th ) || ( MeasureNum5 = Measure8th ) || ( MeasureNum5 = Measure9th )) ? MeasureExtreme : MeasureNum5 ), ( Min (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th ) || ( MeasureNum6 = Measure8th ) || ( MeasureNum6 = Measure9th )) ? MeasureExtreme : MeasureNum6 ), ( Min (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th ) || ( MeasureNum7 = Measure8th ) || ( MeasureNum7 = Measure9th )) ? MeasureExtreme : MeasureNum7 ), ( Min (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th ) || ( MeasureNum8 = Measure8th ) || ( MeasureNum8 = Measure9th )) ? MeasureExtreme : MeasureNum8 ), ( Min (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th ) || ( MeasureNum9 = Measure8th ) || ( MeasureNum9 = Measure9th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th ) || ( MeasureNum10 = Measure8th ) || ( MeasureNum10 = Measure9th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))) : ( Max (((( MeasureNum1 = Measure1st ) || ( MeasureNum1 = Measure2nd ) || ( MeasureNum1 = Measure3rd ) || ( MeasureNum1 = Measure4th ) || ( MeasureNum1 = Measure5th ) || ( MeasureNum1 = Measure6th ) || ( MeasureNum1 = Measure7th ) || ( MeasureNum1 = Measure8th ) || ( MeasureNum1 = Measure9th )) ? MeasureExtreme : MeasureNum1 ), ( Max (((( MeasureNum2 = Measure1st ) || ( MeasureNum2 = Measure2nd ) || ( MeasureNum2 = Measure3rd ) || ( MeasureNum2 = Measure4th ) || ( MeasureNum2 = Measure5th ) || ( MeasureNum2 = Measure6th ) || ( MeasureNum2 = Measure7th ) || ( MeasureNum2 = Measure8th ) || ( MeasureNum2 = Measure9th )) ? MeasureExtreme : MeasureNum2 ), ( Max (((( MeasureNum3 = Measure1st ) || ( MeasureNum3 = Measure2nd ) || ( MeasureNum3 = Measure3rd ) || ( MeasureNum3 = Measure4th ) || ( MeasureNum3 = Measure5th ) || ( MeasureNum3 = Measure6th ) || ( MeasureNum3 = Measure7th ) || ( MeasureNum3 = Measure8th ) || ( MeasureNum3 = Measure9th )) ? MeasureExtreme : MeasureNum3 ), ( Max (((( MeasureNum4 = Measure1st ) || ( MeasureNum4 = Measure2nd ) || ( MeasureNum4 = Measure3rd ) || ( MeasureNum4 = Measure4th ) || ( MeasureNum4 = Measure5th ) || ( MeasureNum4 = Measure6th ) || ( MeasureNum4 = Measure7th ) || ( MeasureNum4 = Measure8th ) || ( MeasureNum4 = Measure9th )) ? MeasureExtreme : MeasureNum4 ), ( Max (((( MeasureNum5 = Measure1st ) || ( MeasureNum5 = Measure2nd ) || ( MeasureNum5 = Measure3rd ) || ( MeasureNum5 = Measure4th ) || ( MeasureNum5 = Measure5th ) || ( MeasureNum5 = Measure6th ) || ( MeasureNum5 = Measure7th ) || ( MeasureNum5 = Measure8th ) || ( MeasureNum5 = Measure9th )) ? MeasureExtreme : MeasureNum5 ), ( Max (((( MeasureNum6 = Measure1st ) || ( MeasureNum6 = Measure2nd ) || ( MeasureNum6 = Measure3rd ) || ( MeasureNum6 = Measure4th ) || ( MeasureNum6 = Measure5th ) || ( MeasureNum6 = Measure6th ) || ( MeasureNum6 = Measure7th ) || ( MeasureNum6 = Measure8th ) || ( MeasureNum6 = Measure9th )) ? MeasureExtreme : MeasureNum6 ), ( Max (((( MeasureNum7 = Measure1st ) || ( MeasureNum7 = Measure2nd ) || ( MeasureNum7 = Measure3rd ) || ( MeasureNum7 = Measure4th ) || ( MeasureNum7 = Measure5th ) || ( MeasureNum7 = Measure6th ) || ( MeasureNum7 = Measure7th ) || ( MeasureNum7 = Measure8th ) || ( MeasureNum7 = Measure9th )) ? MeasureExtreme : MeasureNum7 ), ( Max (((( MeasureNum8 = Measure1st ) || ( MeasureNum8 = Measure2nd ) || ( MeasureNum8 = Measure3rd ) || ( MeasureNum8 = Measure4th ) || ( MeasureNum8 = Measure5th ) || ( MeasureNum8 = Measure6th ) || ( MeasureNum8 = Measure7th ) || ( MeasureNum8 = Measure8th ) || ( MeasureNum8 = Measure9th )) ? MeasureExtreme : MeasureNum8 ), ( Max (((( MeasureNum9 = Measure1st ) || ( MeasureNum9 = Measure2nd ) || ( MeasureNum9 = Measure3rd ) || ( MeasureNum9 = Measure4th ) || ( MeasureNum9 = Measure5th ) || ( MeasureNum9 = Measure6th ) || ( MeasureNum9 = Measure7th ) || ( MeasureNum9 = Measure8th ) || ( MeasureNum9 = Measure9th )) ? MeasureExtreme : MeasureNum9 ), ((( MeasureNum10 = Measure1st ) || ( MeasureNum10 = Measure2nd ) || ( MeasureNum10 = Measure3rd ) || ( MeasureNum10 = Measure4th ) || ( MeasureNum10 = Measure5th ) || ( MeasureNum10 = Measure6th ) || ( MeasureNum10 = Measure7th ) || ( MeasureNum10 = Measure8th ) || ( MeasureNum10 = Measure9th )) ? MeasureExtreme : MeasureNum10 ))))))))))))))))))))
DynamicVariables=1

[Measure10thSer]
Measure=Calc
Formula=(( MeasureNum1 = Measure10th ) ? 1 : (( MeasureNum2 = Measure10th ) ? 2 : (( MeasureNum3 = Measure10th ) ? 3 : (( MeasureNum4 = Measure10th ) ? 4 : (( MeasureNum5 = Measure10th ) ? 5 : (( MeasureNum6 = Measure10th ) ? 6 : (( MeasureNum7 = Measure10th ) ? 7 : (( MeasureNum8 = Measure10th ) ? 8 : (( MeasureNum9 = Measure10th ) ? 9 : 10 )))))))))

[Measure10thCount]
Measure=Calc
Formula=(( MeasureNum1 = Measure10th ) + ( MeasureNum2 = Measure10th ) + ( MeasureNum3 = Measure10th ) + ( MeasureNum4 = Measure10th ) + ( MeasureNum5 = Measure10th ) + ( MeasureNum6 = Measure10th ) + ( MeasureNum7 = Measure10th ) + ( MeasureNum8 = Measure10th ) + ( MeasureNum9 = Measure10th ) + ( MeasureNum10 = Measure10th ))

[Measure10thSorted]
Measure=Calc
Formula=(( Measure1stCount > 9 ) ? Measure1st : ((( Measure1stCount + Measure2ndCount ) > 9 ) ? Measure2nd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount ) > 9 ) ? Measure3rd : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount ) > 9 ) ? Measure4th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount ) > 9 ) ? Measure5th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount ) > 9 ) ? Measure6th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount ) > 9 ) ? Measure7th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount + Measure8thCount ) > 9 ) ? Measure8th : ((( Measure1stCount + Measure2ndCount + Measure3rdCount + Measure4thCount + Measure5thCount + Measure6thCount + Measure7thCount + Measure8thCount + Measure9thCount ) > 9 ) ? Measure9th : Measure10th )))))))))

[MeterNumbers]
MeasureName=MeasureNum1
MeasureName2=MeasureNum2
MeasureName3=MeasureNum3
MeasureName4=MeasureNum4
MeasureName5=MeasureNum5
MeasureName6=MeasureNum6
MeasureName7=MeasureNum7
MeasureName8=MeasureNum8
MeasureName9=MeasureNum9
MeasureName10=MeasureNum10
Meter=STRING
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
FontSize=10
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1, %2, %3, %4, %5, %6, %7, %8, %9, %10
LeftMouseUpAction=!UpdateMeasure *

[MeterSorted]
MeasureName=Measure1stSorted
MeasureName2=Measure2ndSorted
MeasureName3=Measure3rdSorted
MeasureName4=Measure4thSorted
MeasureName5=Measure5thSorted
MeasureName6=Measure6thSorted
MeasureName7=Measure7thSorted
MeasureName8=Measure8thSorted
MeasureName9=Measure9thSorted
MeasureName10=Measure10thSorted
Meter=STRING
X=0r
Y=5R
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
FontSize=10
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=%1, %2, %3, %4, %5, %6, %7, %8, %9, %10
LeftMouseUpAction=[!WriteKeyValue Variables Asc "(1-#Asc#)"][!SetVariable Asc "(1-#Asc#)"]
DynamicVariables=1
User avatar
Active Colors
Moderator
Posts: 529
Joined: February 16th, 2012, 3:32 am

Re: Sorter

Active Colors » March 30th, 2015, 1:53 pm

Really handy trick. Thank you balala.
User avatar
balala
Rainmeter Sage
Posts: 8871
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Sorter

balala » March 30th, 2015, 1:55 pm

Active Colors wrote:Really handy trick. Thank you balala.
You're welcome and I'm glad if you like it. I worked a lot on it!