Reputation: 25
I have a Power BI Dashboard which has multiple visualisations on it (mock-up below) I want Charts 1&2 to be effected by the date slicer in order to show data from an individual month (dropdown list date slicer) but my third visualisation is a graph over time which currently is not affected by the slicer. However, I have had feedback that including moths beyond the month selected by the slicer is causing confusion. Is there any way to have a single select slicer show the data from before a point in time.
Upvotes: 1
Views: 351
Reputation: 12111
It is possible, and you will need two things:
MyDateChartMeasure =
var maxDate = MAX('DateTable'[Date]) // max date value sliced on
var result = CALCULATE(
SUM('FactTaable[Value),
ALL('DateTable'), // ALL(...) removes any filters (ie the slicer)
KEEPFILTERS('DateTable'[Date] <= maxDate) // only return dates upto the sliced date
)
return result
Upvotes: 1