Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.
Function setthepercentage(ByVal thegoals As List(Of Integer), ByVal thename As String) As String Dim over05 As Integer = 0 Dim over15 As Integer = 0 Dim over25 As Integer = 0 Dim countelements As Integer = 0 'work out if it is 0.5 - 1,3,4,5,3,2,4,5, For Each element As String In thegoals 'chekc if over 0.5 countelements = countelements + 1 If element > 0 Then over05 = over05 + 1 'check if over 1.5 ElseIf element > 1 Then over15 = over05 + 1 'check if over 2.5 ElseIf element > 2 Then over25 = over05 + 1 End If Next over05 = (over05 / countelements) * 100 If over05 <> "NaN" Then Session(thename & "over05") = over05 End If over15 = (over15 / countelements) * 100 If over15 <> "NaN" Then Session(thename & "over15") = over15 End If over25 = (over25 / countelements) * 100 If over25 <> "NaN" Then Session(thename & "over25") = over25 End If End Function
I also count how many times it goes through a loop so
If element > 0 Then over05 = over05 + 1 end if
this give me the numbers to work with so:
countelements = countelements + 1
over05 = (over05 / countelements) * 100
|Anyway to make "All" the default in the dropdown?||6||34|
|C# MVC and a global static factory that never dies||4||49|
|Write to file when application closes (by logoff) - VB.NET||1||21|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!