Forum Discussion
Two Cumulative Totals in the same graph
- 7 years ago
Hi JPQ,
Your formulas should work though the result could be wrong. Please try this formula instead and the demo in the attachment.
Liberado Acumulado new = CALCULATE ( SUM ( 'IW39 Filtrada'[Custos tot.plan] ), FILTER ( ALLSELECTED ( 'Datas'[Date] ), 'Datas'[Date] <= MAX ( 'Datas'[Date] ) ), USERELATIONSHIP ( Datas[Date], 'IW39 Filtrada'[Liberação real] ) )Best Regards,
Dale - 7 years ago
Thx for the tip!
I finally works. The only thing is that it projets the upcoming months.
Thx a lot!
Hi Greg_Deckler,
Thx for the answer. It seems that USERELATIONSHIP can only be apllied to the CALCULTE function.
I tried to set the date hierarchy that you mentioned, but one of the relationships came inactive.
I found out that one way to solve this problem is duplicating the data table and establishing two active relationships to the calendar table. It solves the problem, but i'm not happy with it.
You know what, another thought is that my Time Intelligence The Hard Way "quick measure" might come into play here. You should be able to use that technique without your second relationship. See what you think:
See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008