Skip to main content
cancel
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.

Reply
nbarsley
Frequent Visitor

Use date slicer to filter two columns before and after.

Hi, 

I'm trying to figure out how to use a date slicer from a generated date table to filter two columns in a table for different ranges. 

SQL Example: 

 

SELECT date1, date2, amount

WHERE date1 > (slicerdate) AND date 2 < (slicerdate) 

 

The closest I've come to making this work is by using a measure to create an if statement for the condition, then filtering the table based on the condition. But this only works when displaying both dates in the table. Any suggestions for a different approach? 

1 REPLY 1
audreygerred
Super User
Super User

Hi! Try out this YouTube video from David Benaim. It should help you get where you need to be: https://youtu.be/pQ9eSnfAhnc?si=PcKONjNkg_mNvulR




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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