Add a calculated column programmatically using views data export I am using the views data export module with Drupal 8. I have a view that shows a list of users and the desired columns to be exported to the csv are:

Name
Trained
Status

Unfortunately, both of the Trained and Status columns are calculated through a semi-complex method from my module. Using the calculated field module isn't really an option.
Ideally my csv should look something like the below. The &quot;Trained&quot; and &quot;Status&quot; columns would be calculated by running the user_id through their respected methods:
Name | Trained | Status
user_name_1 | is_trained(user_id_1) | get_status(user_id_1)
user_name_2 | is_trained(user_id_2) | get_status(user_id_2)
...

I have tried what I feel is every combination of views pre_render, post_render, post_execute, etc...; however, I just can't seem to find a way to add a calculated value to the row. It is possible I am approaching this wrong but any suggestions on how to accomplish this would be appreciated.
I am going to go ahead and answer my own post to help anyone else out.
A simple way to do this for me was to write a views plugin as suggested in the comments.
Here is a great link to walk you through this: https://www.webomelette.com/creating-custom-views-field-drupal-8
I do not feel I can write any explanation better than what is done in this article so I would jump over there for more information.