Forum Discussion
JPQ
7 years agoFrequent Visitor
Two Cumulative Totals in the same graph
Hi, After a lot of reading, i´m still managing a problem inserting two measures for cumulative totals in the same graph. I have a table with two date columns (Dta.CONF, Liberacao Real) both rela...
- 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!
Greg_Deckler
Community Champion
7 years agoI'm going to guess here that perhaps USERELATIONSHIP needs to be within the FILTER clause as well? Models like that are generally bad news.
I wonder what would happen if you created 2 additional calendar tables so that you have 1 calendar table that relates to the other two and then each date in your table relates to one of those 2 calendar tables. Then you use the top calendar table date as your axis.
Then you would have all active relationships.