User Profile
rodri_11
Regular Visitor
Joined 3 years ago
User Widgets
Contributions
Calculation in DAX of savings in watts accumulated per week (English & Spanish)
(ENGLISH) Hello! First of all I would like to thank you for accepting me in this forum, I have had a look and there are really interesting topics. I am an average user of Power BI and new here, where I have arrived since there is a calculation that is resisting me and I would like to know if any of you know how to do it. Since I have not been able to find the solution in Power BI, I opted for the option to try first with an example table in Excel to see if I was able to perform the calculation on this tool and, indeed, I have found it. I would only need to extrapolate it to PBI. I put you in situation. I am carrying out a series of shutdowns of electrical appliances that are no longer in use and I want to calculate the savings that I am having week after week as a result of said shutdowns. As a starting point I have two columns: WEEK: this column indicates the week number NEW SAVINGS (W): indicates the total Watts consumed by all the equipment turned off in the corresponding week. That is, if in W4 I turn off 5 devices that consume 1W each, that column would have the value of 5 (5 devices x 1W). That being said, what I need is a third column in DAX in which I can calculate all the accumulated savings that I am getting week after week due to the fact of having turned off all this equipment. The series for week "n" would be something like this, W1 being the first in which shutdowns occur: (n) x W1 + (n-1) x W2 + (n-2) x W3 + (n-3) x W4 + (n-4) x W5........ Below I attach a photo of the table in Excel that I have prepared as an example: Thank you very much in advance for your help. All the best. rodri_11 (SPANISH) ¡Hola! Primero de todo me gustaría agradecer que me hayais aceptado en este foro, he echado un vistazo y hay topics realmente interesantes. Soy usuario medio de Power BI y nuevo por aqui, donde he llegado puesto que hay un cálculo que se me está resistiendo y me gustaría saber si alguno de ustedes sabe como poder realizarlo. Puesto que en Power BI no he logrado dar con la solución, opté por la opción de probar en primer lugar con una tabla de ejemplo en Excel para ver si era capaz de realizar el calculo sobre esta herramienta y, efectivamente, he dado con ello. Solo me faltaría extrapolarlo a PBI. Os pongo en situación. Estoy realizando una serie de apagados de electrodomésticos que ya no están en uso y quiero calcular los ahorros que voy teniendo semana tras semana como consecuencia de dichos apagados. Como punto de partida tengo dos columnas: WEEK: esta columna indica el número de semana NEW SAVINGS (W): indica el total de Watios que consumen todos los equipos apagados en la correspondiente semana. Es decir, si en W4 apago 5 equipos que consumen 1W cada uno, esa columna tendría el valor de 5 (5 equipos x 1W). Dicho esto, lo que yo necesito es una tercera columna en DAX en la que pueda calcular todo el ahorro acumulado que voy consiguiendo semana tras semana por el hecho de haber apagado todos estos equipos . La serie para la semana "n" sería algo así, siendo la W1 la primera en la que se producen apagados: (n) x W1 + (n-1) x W2 + (n-2) x W3 + (n-3) x W4 + (n-4) x W5........ A continuación adjunto una foto de la tabla en Excel que he preparado como ejemplo: Muchas gracias de antemano por vuestra ayuda. Un saludo. rodri_11
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.