Forum Discussion
Syndicate_Admin
4 years agoAdministrator
Add in line graph
Good, I'm working on a personal project, and I've stagnated in one step. I intend to make a line graph where the values are increasing, which is shown as in the example. In my document I...
- 4 years ago
Ruben28P That looks good to me, is it giving the results you want? If so please mark it as a solution.
AllisonKennedy
4 years agoCommunity Champion
Ruben28P I think what you're looking for is a running total measure.
Try something like:
VAR _time = MAX( xG_Partidos[Time] )
RETURN
Running Total xG = CALCULATE( SUM(xG_Partidos[xG] ) , xG_Partidos[Time] <= _time)
Ruben28P
4 years agoFrequent Visitor
Hola AllisonKennedy
Probé con lo que me pusiste en la contestación, pero me salía error.
Esta puede ser una solución?
xG_Acumulado = CALCULATE(xG_Partidos[Med_xG] , FILTER(ALLSELECTED(xG_Partidos[Minuto]) , xG_Partidos[Minuto] <= MAX(xG_Partidos[Minuto])))
Muchas gracias.
- AllisonKennedy4 years agoCommunity Champion
Ruben28P That looks good to me, is it giving the results you want? If so please mark it as a solution.