I'm a powershell beginner and I hope you can help me. I wrote a PS script for our accounting department that shows the license costs for our microsoft 365 users with the cost center number of the user. I would like to expand the script by automatically creating the totals for each cost center via csv import in powershell. here is what the csv list looks like after the script runcsv after the script run Every Cost Center can have multiple, different types of licenses. So for example the cost center "1051080" could have ten times the license "business premium" and five times the license "F3" as you can see in the image.
At the end i want to have a summary for each cost center that looks somehow like that final CSV This summary could be append at the end of the origin csv file or exported to a new one. that does not matter. I hope you understand what i mean. English is not my mother tongue.
Maybe there is a completely different way to achieve this and powershell is not even necessary. I am thankful for every help. Best regards and greeting! Felix