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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Not applicable

Include/Exclude records based on date value in slicer


I have a Date Dimension table  and use a slicer (from and to) to filter several transactional tables linked to a Job table. This works fine and I get the results I need.


I now have to include/exclude jobs in the Job table where the job created date is less than or equal to the To date in the above slicer.


How can I do this?

Community Support
Community Support

Hi @Anonymous ,


Create a disconnected date table as a slicer.

Table 2 = CALENDAR(MIN('Table'[date]),MAX('Table'[date]))

Create a measure and apply it to visual level filter:

Measure = IF(MAX('Table'[date])<=SELECTEDVALUE('Table 2'[Date]),1,0)



Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Not applicable

Thank you Liang, you're suggestion has halped me to solve the problem.

Super User
Super User

@Anonymous , Try like


measure =
var _max = maxx(allselected('Date'), 'Date'[Date])
var _tab = summarize(filter(Job, Job[created date] <= _max), job[Job])
calculate([measure], filter(Job, Job[Job] in _tab))


Assume Date table and Job table are joined to table of measure

Not applicable

Thank you Amit, your suggestion has helped me to solve the problem.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors