Calculate CO2 in Excel and PowerBI

%3CLINGO-SUB%20id%3D%22lingo-sub-2430098%22%20slang%3D%22en-US%22%3ECalculate%20CO2%20in%20Excel%20and%20PowerBI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2430098%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20my%20role%20in%20local%20government%20I%20work%20with%20businesses%20and%20developers%20to%20encourage%20sustainable%20travel.%20Within%20this%20I%20help%20with%20the%20delivery%20of%20travel%20surveys%20which%20are%20used%20to%20monitor%20changes%20in%20the%20modes%20of%20transport%20that%20are%20being%20used.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20traditionally%20used%20Excel%20for%20analysis%20and%20reporting%20but%20I%20am%20now%20starting%20to%20make%20use%20of%20PowerBI%20for%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20wondering%20if%20there%20is%20a%20way%20in%20Excel%20and%20PowerBI%20to%20calculate%20CO2%20emissions%20for%20a%20journey%20where%20some%20of%20the%20elements%20in%20the%20calculation%20would%20be%20determined%20by%20the%20mode%20of%20transport%20used.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20table%20with%20details%20of%20journeys%20broken%20down%20into%20stages%20to%20allow%20for%20people%20making%20use%20of%20different%20transport%20modes%20in%20the%20course%20of%20their%20journey%3A%26nbsp%3B%3C%2FP%3E%3CTABLE%20width%3D%221037%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22166%22%3EMode%201%3C%2FTD%3E%3CTD%20width%3D%2264%22%3ETime%201%3C%2FTD%3E%3CTD%20width%3D%22113%22%3EDestination%201%3C%2FTD%3E%3CTD%20width%3D%2269%22%3EOther%201%3C%2FTD%3E%3CTD%20width%3D%2269%22%3EMode%202%3C%2FTD%3E%3CTD%20width%3D%2264%22%3ETime%202%3C%2FTD%3E%3CTD%20width%3D%22113%22%3EDestination%202%3C%2FTD%3E%3CTD%20width%3D%2269%22%3EMode%203%3C%2FTD%3E%3CTD%20width%3D%2264%22%3ETime%203%3C%2FTD%3E%3CTD%20width%3D%2269%22%3EMode%204%3C%2FTD%3E%3CTD%20width%3D%2264%22%3ETime%204%3C%2FTD%3E%3CTD%20width%3D%22113%22%3EDestination%204%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EDrive%20a%20car%20alone%3C%2FTD%3E%3CTD%3E25%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EDrive%20a%20car%20alone%3C%2FTD%3E%3CTD%3E45%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ECycle%3C%2FTD%3E%3CTD%3E45%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3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TD%3EWalk%3C%2FTD%3E%3CTD%3E20%3C%2FTD%3E%3CTD%3EThe%20bus%20stop%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EBus%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWalk%3C%2FTD%3E%3CTD%3E15%3C%2FTD%3E%3CTD%3EThe%20bus%20stop%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EBus%3C%2FTD%3E%3CTD%3E35%3C%2FTD%3E%3CTD%3EThe%20bus%20stop%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EWalk%3C%2FTD%3E%3CTD%3E15%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWalk%3C%2FTD%3E%3CTD%3E5%3C%2FTD%3E%3CTD%3EThe%20bus%20stop%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EBus%3C%2FTD%3E%3CTD%3E25%3C%2FTD%3E%3CTD%3EThe%20bus%20stop%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3EWalk%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3EMy%20place%20of%20work%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20have%20a%20table%20which%20contains%20the%20information%20on%20average%20speeds%20and%20the%20average%20CO2%20emissions%20per%20km%3A%3C%2FP%3E%3CTABLE%20width%3D%221112%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22436%22%3EMode%20Average%20Speeds%2C%20expressed%20as%20kilometres%20per%20hour%3A%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2264%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%22548%22%3ECO2%20Factors.%20These%20are%20expressed%20as%20kilogrammes%20of%20CO2%20per%20passenger%20per%20kilometre%3A%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWalk%3C%2FTD%3E%3CTD%3E4.80%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EUnderground%3C%2FTD%3E%3CTD%3E0.065%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ECycle%3C%2FTD%3E%3CTD%3E20.0%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EDLR%3C%2FTD%3E%3CTD%3E0.075%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EUnderground%3C%2FTD%3E%3CTD%3E33.0%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3ETram%3C%2FTD%3E%3CTD%3E0.042%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EDLR%3C%2FTD%3E%3CTD%3E25.0%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3ECommuter%20Train%3C%2FTD%3E%3CTD%3E0.062%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ETram%3C%2FTD%3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above%20125cc)%3C%2FTD%3E%3CTD%3E26.5%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3ECar%20share%20as%20a%20driver%3C%2FTD%3E%3CTD%3E0.129%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ERiverboat%3C%2FTD%3E%3CTD%3E19.0%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3ECar%20share%20as%20a%20passenger%3C%2FTD%3E%3CTD%3E0.129%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ECar%20share%20as%20a%20driver%3C%2FTD%3E%3CTD%3E26.5%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3EMotorcycle%20(below%20125cc)%3C%2FTD%3E%3CTD%3E0.112%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3ECar%20share%20as%20a%20passenger%3C%2FTD%3E%3CTD%3E26.5%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EMotorcycle%20(below%20125cc)%3C%2FTD%3E%3CTD%3E26.5%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EPark%20and%20Ride%3C%2FTD%3E%3CTD%3E15.5%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3CTD%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20CO2%20is%20calculated%20by%3A%3C%2FP%3E%3CP%3E1.%20Multiplying%20the%20time%20taken%20by%20the%20average%20speed%20for%20the%20mode%20used%20(e.g.%2025*26.5)%20and%20divide%20by%2060%20(to%20allow%20for%20conversion%20from%20minutes%20to%20hours)%20to%20give%20distance%20travelled%20(expressed%20in%20kilometres).%3C%2FP%3E%3CP%3E2.%20multiply%20the%20distance%20travelled%20by%20the%20corresponding%20%E2%80%9CCO2%20Factor%E2%80%9D.%20This%20will%20give%20kilogrammes%20of%20CO2%20for%20each%20mode%20travelled.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20would%20like%20to%20be%20able%20to%20do%20is%20automatically%20calculate%20the%20relevant%20CO2%20amount%20for%20each%20row%20where%20the%20average%20speed%20and%20the%20CO2%20Factor%20will%20change%20depending%20on%20the%20mode%20of%20transport%20used.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20it%20is%20possible%20to%20run%20a%20calculation%20like%20this%20in%20Excel%20or%20PowerBI%20and%20if%20so%20how%20it%20would%20need%20to%20be%20written%20to%20take%20into%20account%20the%20different%20multipliers%20to%20be%20used%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%20in%20advance%2C%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2430098%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433291%22%20slang%3D%22en-US%22%3ERe%3A%20Calculate%20CO2%20in%20Excel%20and%20PowerBI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433291%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3Ecan%20you%20attach%20an%20example%20spreadsheet%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433429%22%20slang%3D%22en-US%22%3ERe%3A%20Calculate%20CO2%20in%20Excel%20and%20PowerBI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433429%22%20slang%3D%22en-US%22%3Eeasy%2C%20send%20the%20column%20headers%20in%20the%20rawest%20form%20(however%20it's%20exported%20from).%20If%20that's%20the%20pick%20list%2C%20shouldn't%20be%20too%20hard.%20I%20work%20with%20surveys%20so%20I%20can%20automate%20this%20type%20easily.%20Neat%20project%2C%20what%20generally%20are%20you%20looking%20to%20find%20or%20how%20are%20you%20trying%20to%20visualize%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2433967%22%20slang%3D%22en-US%22%3ERe%3A%20Calculate%20CO2%20in%20Excel%20and%20PowerBI%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2433967%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1064156%22%20target%3D%22_blank%22%3E%40StoneKiwi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20spreadsheet%20that%20I%20have%20been%20working%20with.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20you%20can%20provide%20will%20be%20most%20helpful.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi

 

In my role in local government I work with businesses and developers to encourage sustainable travel. Within this I help with the delivery of travel surveys which are used to monitor changes in the modes of transport that are being used.

 

I have traditionally used Excel for analysis and reporting but I am now starting to make use of PowerBI for this.

 

I am wondering if there is a way in Excel and PowerBI to calculate CO2 emissions for a journey where some of the elements in the calculation would be determined by the mode of transport used.

 

I have a table with details of journeys broken down into stages to allow for people making use of different transport modes in the course of their journey: 

Mode 1Time 1Destination 1Other 1Mode 2Time 2Destination 2Mode 3Time 3Mode 4Time 4Destination 4
Drive a car alone25My place of work         
Drive a car alone45My place of work         
Cycle45My place of work         
Cycle60My place of work         
Taxi15My place of work         
Car share as a driver15My place of work         
Car share as a passenger10My place of work         
Taxi25My place of work         
Car share as a driver30My place of work         
Motorcycle (above 125cc)20My place of work         
Car share as a passenger20My place of work         
Motorcycle (above 125cc)15My place of work         
Walk5The bus stop Bus25The bus stop  Walk5My place of work
Walk15My place of work         
Walk20The bus stop Bus10My place of work     
Walk15The bus stop Bus35The bus stop  Walk15My place of work
Walk5The bus stop Bus25The bus stop 0Walk10My place of work

 

I also have a table which contains the information on average speeds and the average CO2 emissions per km:

Mode Average Speeds, expressed as kilometres per hour:  CO2 Factors. These are expressed as kilogrammes of CO2 per passenger per kilometre:
Walk4.80  Underground0.065
Cycle20.0  DLR0.075
Underground33.0  Tram0.042
DLR25.0  Commuter Train0.062
Tram22.7  Bus0.081
Commuter Train40.0  Drive a car alone0.206
Bus15.5  Taxi0.168
Drive a car alone26.5  Scooter0.073
Taxi26.5  Motorcycle (above 125cc)0.112
Scooter26.5  Riverboat unknown
Motorcycle (above 125cc)26.5  Car share as a driver0.129
Riverboat19.0  Car share as a passenger0.129
Car share as a driver26.5  Motorcycle (below 125cc)0.112
Car share as a passenger26.5    
Motorcycle (below 125cc)26.5    
Park and Ride15.5    

 

The CO2 is calculated by:

1. Multiplying the time taken by the average speed for the mode used (e.g. 25*26.5) and divide by 60 (to allow for conversion from minutes to hours) to give distance travelled (expressed in kilometres).

2. multiply the distance travelled by the corresponding “CO2 Factor”. This will give kilogrammes of CO2 for each mode travelled.

 

What I would like to be able to do is automatically calculate the relevant CO2 amount for each row where the average speed and the CO2 Factor will change depending on the mode of transport used.

 

Does anyone know if it is possible to run a calculation like this in Excel or PowerBI and if so how it would need to be written to take into account the different multipliers to be used?

 

Many thanks in advance,

Andy

8 Replies
Hi,
can you attach an example spreadsheet?
easy, send the column headers in the rawest form (however it's exported from). If that's the pick list, shouldn't be too hard. I work with surveys so I can automate this type easily. Neat project, what generally are you looking to find or how are you trying to visualize?

Hi @StoneKiwi 

 

I have attached the spreadsheet that I have been working with.

 

Any help you can provide will be most helpful.

 

Andy

@Cheugy 

 

Hi

Thanks for the reply.

What I would like to be able to show is the amount of CO2 produced by each mode of transport that produces this.

So for instance if it is possible to do so car should show the amount of CO2 as a combination of Drive a car alone, Car share as driver and Car share as passenger.

As this is for reporting survey outcomes a simple bar chart would suffice.

I have attached the spreadsheet that I have been working with.

 

@thomsona1969

Thanks for sending! Would you also have the raw output of the survey results? I'd like to automate this for you so you can just paste the data and things will calculate automatically.

@Cheugy 

I hadn't got as far as anything to output the results in other than with a Pivot table and chart as in the attached. I had moved on to using PowerBI for this but need to have the ability to do this in Excel as a fall back especially if someone else takes on this work

@thomsona1969 

 

Hi there,

 

So I took a stab at it and looked like you were doing a lot of manual things to get the calculations going. First thing I did is change up the formulas in column E,I, L, & P. I put in an index/match formula that will crawl through the "Factors" sheet to find the respective CO2 emissions (factors 1 & 2). With different data entries, you'll need to update these values for the fields in the raw data to compute properly. Secondly, because there are mulitple methods of transportation that vary from 1 - 4 selections, I added in a column (R) to find the main method of transportation (I used the max time of commute among the values in the row). Column R will spit back the main method of transportation. And lastly (regarding the column changes), added in 1s for column T to count the unique survey participants. 

 

I formatted everything as a table, so the pivot will reference the table instead of a range (this will help you avoid having to update the pivot range each time an entry is made).

 

If you enter in new data, just click the refresh button on the data tab.

 

I would recommend that you finalize the survey and export in the rawest form and then build formulas around on new columns on the right. That will make it much easier if you anticipate thousands of incoming surveys.

 

The pivot chart will show the total CO2 emission by individuals (using their primary form of transportation) along with the count of survey takers. You could also show averages, but in this case, I think sheer volume might be the way to go. Secondary axis will show the count of unique survey takers.

 

Try keying in data and then hitting refresh to make sure things don't break. The "Factors" sheet will be your source of truth so anything missing will throw off the calculations (i.e., adding in a new type of transportation without updating the "factors" sheet will break the formulas)

 

Hopefully this helps, let me know if you have any questions.

 

Hi
Thanks for having a look at this and for coming up with a solution.
I will test it out and if there is anything that I am unsure of I will let you know.
Many thanks for the help,
Andy