Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Everyone,
I have a table of activities that has the total slack for each activity at different dates. I want to display a chart using a measure that plots the total slack by date for all the dates up to the date I select in the slicer.
This is what I want to see:
This is what I get instead:
I cannot turn off the interactions between the slicer and the chart because I want the chart to change if I select a different date and I cannot change the slicer options to "between" or "multi-select" because of customer requirements.
This is what my data looks like:
This is the measure I am currently using to display the slack trend:
slack trend =
CALCULATE(
MAX(schedule[total_slack]),
FILTER(
schedule,
schedule[statusperiod] = MAX(schedule[statusperiod])
)
)
Thanks in advance!
Solved! Go to Solution.
@vsorensen , If you are filtering one value and want a trend of more than that , then the slicer needs to be on an independent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = _max -5
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
@vsorensen , If you are filtering one value and want a trend of more than that , then the slicer needs to be on an independent table
//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = _max -5
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] >=_min && 'Date'[Date] <=_max))
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
Thank you for pointing me in the right direction. Ultimately I used this post to find a solution:
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
49 | |
42 | |
39 | |
38 |