Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |