Forum Discussion
Cumulative Total Per Hour
Syndicate_Admin , Create a date time in your table with hour only
date hour = datevalue([Datetime]) +time( hour([Datetime]),0,0)
then a measure like
calculate(sum(Table[value]), filter(allselected(Table[Datehour]), Table[datehour]<= max(Table[Datehour]) ) )
- Syndicate_Admin4 years agoAdministrator
Thank you for answering me @Syndicate_Admin, I have been trying to implement it, but there is something that I do not understand very well, you tell me that I have to create a table with the date and from there extract the time, I in the information I have, I have a column where the closing hours are. At the time of applying the code I would have something similar to this:
Acumulado = CALCULATE(SUM('consultas consultas[statuscerrados]), FILTER(ALL('consultas consultas'),'consultas consultas'[hora_cierre] <= max ('consultas consultas'[hora_cierre])))If I put it in my graph everything gives me 1 😥 and well that is not the correct result, for example between 9 and 10, there should be 647
In advance thank you very much
- Syndicate_Admin4 years agoAdministrator
Hello, sorry for the inconvenience, will anyone have any news with the latest I said?
In advance thank you very much
- Syndicate_Admin3 years agoAdministrator
Refers to Create a table,
You will create a table like this.Then you have to format the Column (hours).
After that you will be ready to create the measurement.
AcumHoras =WHERE CALCULATE =CALCULATE(COUNTROWS(TablaX),FILTER(ALL(TablaX),TablaX[Time] <= .MAX(TablaHoras[Hours])))RETURN CALCULATESlds.