You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$AbsolutePathTotal= ($csvData|Where-Object { $_.AbsolutePath }).Count # counts how many AbsolutePath cells have a value
51
+
$AbsolutePathUnique= ($csvData|Where-Object { $_.AbsolutePath } |Select-Object-Property AbsolutePath -Unique).Count # counts how many unique AbsolutePath cells exist
52
+
53
+
## Get counts for FirstInteracted column combined with AbsolutePath
54
+
$FirstInteractedTotal= ($csvData|Where-Object { $_.FirstInteracted }).Count # counts how many FirstInteracted cells have a value
55
+
$FirstInteractedUnique= ($csvData|Where-Object { $_.FirstInteracted } |Select-Object-Property @{ Name='Combo'; Expression= { "$($_.AbsolutePath)|$($_.FirstInteracted)" } } |Select-Object-Unique Combo).Count # counts how many FirstInteracted cells have a value combined with the AbsolutePath value
51
56
52
57
## Get counts for LastInteracted column combined with AbsolutePath
$LastInteractedTotal= ($csvData|Where-Object { $_.LastInteracted }).Count# counts how many LastInteracted cells have a value
59
+
$LastInteractedUnique= ($csvData|Where-Object { $_.LastInteracted } |Select-Object-Property @{ Name='Combo'; Expression= { "$($_.AbsolutePath)|$($_.LastInteracted)" } } |Select-Object-Unique Combo).Count# counts how many LastInteracted cells have a value combined with the AbsolutePath value
55
60
56
61
## Get total unique values between both columns combined with AbsolutePath
Write-Host"This script combines either FirstInteracted or LastInteracted with the value of AbsolutePath for the purpose of calculating the total count within a respective CSV"
74
+
Write-Host"Total count of values in AbsolutePath column: $AbsolutePathTotal"
75
+
Write-Host"Number of unique values in AbsolutePath column: $AbsolutePathUnique"
69
76
Write-Host"Total count of values in FirstInteracted column: $FirstInteractedTotal"
70
77
Write-Host"Number of unique values in FirstInteracted column: $FirstInteractedUnique"
71
78
Write-Host"Total count of values in LastInteracted column: $LastInteractedTotal"
72
79
Write-Host"Number of unique values in LastInteracted column: $LastInteractedUnique"
73
-
Write-Host"Total unique values between both columns: $totalUniqueValues"
74
-
Write-Host"Total number of values in both columns: $totalValues"
80
+
Write-Host"Total unique values between both AbsolutePath and FirstInteracted/LastInteracted columns: $totalUniqueValues"
81
+
Write-Host"Total number of values between both AbsolutePath and FirstInteracted/LastInteracted columns: $totalValues"
0 commit comments