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

Retrieving Data based on two dates in one table

Hi, 

Good day.

I have a table with two dates (activated date and reactivated date) and the requirement is to retrieve the data based on that two dates using only 1 calendar.

Here's the sample table structure and the current active connection to the calendar table is created_date.

If my Date slicer value is from 10/01/2021 to 10/31/2021 then I should still retrieve Zoro's information because he's reactivated_date is within the range. 

ref_idapp_idnameemailcreated_datereactivated_date
1222LuffyLuffy@email.com10/01/202110/20/2021
1111ZoroZoro@email.com10/02/202010/25/2021
2333SanjiSanji@email.com10/05/2021null
3444UssopUssop@email.com10/21/2021null

 

Thanks in advance for the help.

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

According to your description,data slicer is from 10/01/2021 to 10/31/2021 then you can still retrieve at least Zoro's and Luffy's information? Why Luffy does not meet your criteria? 

If it is possible, please provide some sample more and desired output.

 

Best Regards

Community Support Team _ polly

 

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

amitchandak
Super User
Super User

@Anonymous , with help from an independent date table for slicer

 

Started in range and end after Range =
var _max = minx(allselected(Date), Date[Date])
var _min = maxx(allselected(Date), Date[Date])
return
calculate(count(Table[Project Number]), Filter(Table,(Table[CreatedDate] <=_max && Table[CreatedDate]) >=_min ) )

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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