Forum Discussion
Cumulative Using Summarized Table
- 6 years ago
Hi, HugoJesus
Try to modify the formula as below:
... ..... VAR LastDay = MAX ( Date_Link[Calendar] ) VAR TempTable2 = ADDCOLUMNS ( TempTable, "Open_Tickets", var _date = [Calendar] return SUMX( FILTER( TempTable, [Calendar]<=_date ), [Daily_Open_Tickets] ) ) RETURN TempTable2The result will show as below:
Please check the attached pbix file for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HugoJesus , In your script of addcolumns .
"Open_Tickets",
CALCULATE
(
SUMX(Filter(TempTable,Date_Link[Calendar] <= earlier(Date_Link[Calendar])),[Daily_Open_Tickets])
)
new column =SUMX(Filter(Total_Open_Tickets ,[Calendar] <= earlier([Calendar])),[Daily_Open_Tickets])
Sorry, is not working. Give to me the follow error.
- v-easonf-msft6 years ago
Community Support
Hi, HugoJesus
Try to modify the formula as below:
... ..... VAR LastDay = MAX ( Date_Link[Calendar] ) VAR TempTable2 = ADDCOLUMNS ( TempTable, "Open_Tickets", var _date = [Calendar] return SUMX( FILTER( TempTable, [Calendar]<=_date ), [Daily_Open_Tickets] ) ) RETURN TempTable2The result will show as below:
Please check the attached pbix file for more details.
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- HugoJesus6 years ago
Helper IV
Hi v-easonf-msft ,
That's a miracle, I searched in many sites, but no one have mentioned something like this.
It works perfectly, this is why I love to share my doubts here in this forum.
Thanks a lot.
Regard'sHugo Jesus
- HugoJesus6 years ago
Helper IV
Hi v-easonf-msft,
It is possible to create a Variable, with this code and create x-axis visualizations by date?
Regard'sHugo Jesus
- HugoJesus6 years ago
Helper IV
Sorry the correct term is "Measure" instead of "Variable".