I'm creating a stacked bar chart to show the day's sales values. To input starting date for the chart, a calendar slicer has been added. My requirement is once, the user has selected a starting date, the chart should display the dates starting from the selected date whether data is available or not. I have tested whether this can be rectified by changing the X-axis type from "Categorial" to "Continous". But it won't do any, to achieve the requirement.
I have below attached a sample chart that I have created.
Also, I need to set the ending date automatically by adding 6months to the starting date. I think the relative date option won't work since the user is selecting starting date from a calendar. Calendar slicer settings have been set as "After" and I need to set the end date to complete the requirement.
I'm really greatful you guys can help me with this..
@IzuruWi , Use After and control rest in measure
new measure =
var _min= Minx(allselected(Date),Date[Date])
var _max= eomonth(_min, 5) // ot use 6
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] <=_max))
User | Count |
---|---|
103 | |
87 | |
70 | |
49 | |
48 |
User | Count |
---|---|
149 | |
95 | |
78 | |
71 | |
68 |