Skip to main content
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

Display day wise on X axis in stacked bar chart.

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.. 



Super User
Super User

@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 
calculate( sum(Table[Value]), filter('Date',  'Date'[Date] <=_max))


Helpful resources

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.


Fabric certifications survey

Certification feedback opportunity for the community.