Forum Discussion
Sixian
8 years agoFrequent Visitor
Cumulative double line chart operating on dates
Hi, I have a table with a list of items with a "target date" and an "actual date" (or blank) associated. As you can see from the attached image, I use a slicer to filter the visuals by the year of ...
v-jiascu-msft
Microsoft Employee
8 years agoHi Sixian,
Based on the Anonymous's solution, you can try this one.
Items running total =
CALCULATE (
COUNT ( 'Table'[Item] ),
FILTER (
ALLSELECTED ( 'Table'[MonthNumber] ),
ISONORAFTER ( 'Table'[MonthNumber], MAX ( 'Table'[MonthNumber] ), DESC )
)
)
I would suggest you create a date table if you don't have one.
Measure =
CALCULATE (
COUNT ( 'table'[item] ),
FILTER (
ALLSELECTED ( 'datetable' ),
'datetable'[date] <= MAX ( 'datetable'[date] )
)
)
Or please share a sample file? Mask the sensitive parts first.
Best Regards,
Dale
Sixian
8 years agoFrequent Visitor
I'm now using the date table and following the new instructions. I'm getting close, but the numbers are still not exact. May be there is something in the filters. I'll let you know.
Thanks for now.