Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm need to calculate the cost of power used for various devices. The time series data looks like this:
Timestamp | Device | Watts |
3/19/2019 14:54:29 | UPS | 71.4 |
3/19/2019 14:54:28 | UPS | 75.3 |
3/19/2019 14:54:27 | UPS | 71.8 |
3/19/2019 14:54:26 | UPS | 0 |
3/19/2019 17:54:25 | UPS | 71 |
3/19/2019 19:54:25 | UPS | 0 |
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
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
@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.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |