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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Slicer range compared with another column power bi dax

Hi Team,

 

I have table visual in my report that filter by the slicer values with some conditions.

 

Slicer

We have given startdate column in the slicer

slicer_date.PNG

 

For Example, If i selected range between 1-Dec-2023 To 31-Dec-2023.

Case 1:  If EndDate  is between the slicer Range then we have to show those records in Table

Start Date                Enddate

15-Nov-2023         15-Dec-2023

 

 

For above record enddate : 15-Dec-2023 is between slicer range values (1-Dec-2023 To 31-Dec-2023) so we need to show above record in table. 

 

Currently it is filtering the values which seleted by slicer range dates.The problem is slicer we have given one column(Startdate) and condition has to check in another column(Enddate)

 

File Link: Table records_slicer.pbix

 

Please help me on this and didn't get thought how to solve?

 

Thanks,

Devansh.

 

 

 

 

        

 

 

2 REPLIES 2
Stachu
Community Champion
Community Champion

At the moment the slicer is set on the column Sheet1[FirstSuppStartDate], the easiest way to get the behaviour you explained is to replace it with the Sheet1[FirstSuppEndDate]. This will reset the visual, so to get the same look & feel you will need to:

  • rename the field name in the visual to Date
  • and switch the slicer type to between

Stachu_0-1705754892988.png

 



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Anonymous
Not applicable

Hi @Stachu ,

As per your suggestion,We have given Enddate column in the slicer

 

For Example, If i selected  Slicer range between 1-Dec-2023 To 31-Dec-2023.

Case 2( Below records also need to show in the table)

Start Date                Enddate

15-Nov-2023         10-Jan-2024

 

 

 If enddate(10-jan-2024)>selected slicer enddate( 31-Dec-2023) also we should display  because event not completed but this record  in the selected date range   so we have to display above record.

 

Thanks in Advance.

Deva.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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