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

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

Reply
Anonymous
Not applicable

Include/Exclude records based on date value in slicer

Hi,

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?

4 REPLIES 4
V-lianl-msft
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)

Vlianlmsft_0-1649406749667.png

 


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

Anonymous
Not applicable

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

amitchandak
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])
return
calculate([measure], filter(Job, Job[Job] in _tab))

 

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

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
Anonymous
Not applicable

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.