I would like to create a script to find different in the value between two report. This script subtract the each value in the csv file. Is that possible?
There are two csv file
CSV1
Country,Exchange,AD
US,1818,2230
UK,1236,1245
IT,843,873
HU,2,84
ZA,,3
CSV2
Country,Exchange,AD
US,1800,2200
UK,1200,1200
IT,800,800
HU,1,80
ZA,,3
I have created fist part of the script. I don’t understand how to subtract the each value in the report. Could anyone help?
#Find two csv file
$Today = Get-Date -format yyyy_MM_dd
$TodayFile = "Report_$Today.csv"
$lastweek = (Get-Date).AddDays(-7)
$lastweek = $lastweek.ToString("yyy_MM_dd")
$lastweekFile = "Report_$lastweek.csv"
Import-Csv $TodayFile
Import-Csv $lastweekFile