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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kondla333
Frequent Visitor

Need to display Date range as per the TWO date slicers selection in line chart

Hi All,

I have line chart visuals and Two date slicers, one is Begin date slicer and other is End date slicer. 

Now i want to display date range as per the Begin date slicer selection and end date slicer selection in line chart viusuals. But when am selecting from begin date and end date selection it is showing all the avaialble dates in the line charts. Can anyone help me on this?

@tex628 , @Ashish_Mathur will you please help me on this?


Thanks in Advance 🙂

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data (in a format that can be pasted in an MS Excel file.), describe the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
amitchandak
Super User
Super User

@Kondla333 , You need independent date tables in slicer for that

 

Date Range Using 2 slicer =
var _max = minx(allselected(Date1), Date1[Date])
var _min = maxx(allselected(Date2), Date2[Date])
return
calculate(countrows(Table), Filter(Table,Table[Date] <=_max && Table[Date] >=_min) )

 

 

 

or with Date1, Date2 are independent and date joined to table

 

Date Range Using 2 slicer =
var _max = minx(allselected(Date1), Date1[Date])
var _min = maxx(allselected(Date2), Date2[Date])
return
calculate(countrows(Table), Filter(Date,Date[Date] <=_max && Date[Date] >=_min) )

 

 

refer similar case

Select data between months - https://youtu.be/nEt7dT3Tfv4

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.