Forum Discussion
Cumulative Using Summarized Table
Hello everyone,
First of all, I'll explain what I'm trying to do.
1. Create a Summarized Table with the following columns "Calendar", "Created Tickets", "Closed Tickets", "Daily Open Tickets" (Is the difference between "Created Tickets" - "Closed Tickets") and finnaly "Open Tickets" (Cumulative of Daily Open Tickets).
2. Then to create cumulative, I'm using the before summarized table to do that, but is only returning the same value "39".
There's an example:
The DAX that I'm using:
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.
10 Replies
- darentengmfs
Post Prodigy
Hi HugoJesus
Please take a look at the following thread: https://community.powerbi.com/t5/Desktop/Cumulative-Total/td-p/43115
- HugoJesus
Helper IV
Hi Darentengmfs,
I've already saw that, but is not the same example, because I'm using SUMMARIZE instead of the primary table.Regards
Hugo Jesus
- amitchandak
Super User
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])
- HugoJesus
Helper IV
Sorry, is not working. Give to me the follow error.
- v-easonf-msft
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.