cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Calculate cost of power

I'm need to calculate the cost of power used for various devices. The time series data looks like this:

 

TimestampDeviceWatts
3/19/2019 14:54:29UPS71.4
3/19/2019 14:54:28UPS75.3
3/19/2019 14:54:27UPS71.8
3/19/2019 14:54:26UPS0
3/19/2019 17:54:25UPS71
3/19/2019 19:54:25UPS0

 

In order to calculate the cost I need to to the following:

 

1. Determine how many watts are spent in an hour. example: If you have a 60W light bulb, for every hour the bulb is turned on, it uses 60W of power.

 

2. Divide the number of watts by 1000 to convert the number from watts to kilowatts. example: 60W divided by 1000 results in 0.06kW.

 

3. Multiply the number of kilowatts by the number of hours the device was used. If the device was used for three hours, multiply 0.06kW by three to produce 0.18kWh. If a 60W light bulb is left on for three hours, it will use 0.18kWh of energy.

 

4. Multiply the number of kWh by cost of energy per kWh. example: Assuming a kWh costs $0.12 then 0.18 Kwh would cost $0.0216

 

Any help would be greatly appreciated.

 

Thanks

3 REPLIES 3
Community Support Team
Community Support Team

Re: Calculate cost of power

hi, @Anonymous 

Sample data and expected output would help tremendously. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Best Regards,
Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Calculate cost of power

@v-lili6-msft My apoligies. I believe a DAX formula that spits out the total cost of power for each device would be fine. I plan on taking said number and using it in a report.

 

If I'm not being clear enough please let me know. I'm still learning Power BI. Forumulating the proper quesiton can be a problem in itself sometimes.

Community Support Team
Community Support Team

Re: Calculate cost of power

hi, @Anonymous 

Just from your sample data, we couldn't find out how to "Calculate cost of power".

Share the expected output based on the sample data, and logic of it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 201 members 2,273 guests
Please welcome our newest community members: