Hello,
I have the following table :
StockTable
I have created this measure to have the cumulative total of the Qty :
qty_cumul =
CALCULATE( SUM(Stock[Qty]); FILTER( ALL(Stock[date]); Stock[date] <= MAX(Stock[date]) ) )
It works as I want. When I want to see the evolution of the cumulative total for specific entities (let's say ENT_1 and ENT_2), it still works well.
HOWEVER i have a problem when I add a visual filter to see the evolution of the total for a specific period. The result is not the sum of the cumulative quantity of ENT_1 and ENT_2 (whereas it is when i don't use the filter on the date).
I realised this graph is displaying alternatively the cumulative total of ENT_1 and ENT_2 which is not what I want.
When I added the filter on the date i expected my bottom chart to be a "zoom in" of the top chart.
I don't understand why it doesn't work as I want. I feel like I am missing something.
Can you help me please.
I am working in DirectQuery mode but to explain my issue i created a custom table.
Here the file i used to do the screenshots:
https://www.dropbox.com/s/sekh8g8ht03ibbs/StockCumulativeTotal.pbix?dl=0