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
Mikeincairns
Frequent Visitor

Help with Date/Time Intelligence

I need to know if a process was active within a date period, selected by a Timeline slicer.
I have a 4 step process.  Each row represents the process, and I have one column for each step completion date.

Data Model consists of Transaction table and Date table (currently unjoined): 

Mikeincairns_1-1735399000335.png


I want to select (say) Q1/2024 and filter all the records in the table that were active in that period.  Note: Q1 is 01/01/2024 - 31/3/2024.
If the process was started prior to Q1/2024, but not finished, then it is still active.

Pivot Table is as shown with the desired result. 

Mikeincairns_2-1735399052760.png

Could someone guide me to the logic of solving this problem.

Any help would be greatly appreciated.  I dont even know how to start thinking about it.

1 ACCEPTED SOLUTION
pcoley
Resolver I
Resolver I

@Mikeincairns 
Please try with this measure:
Logic: if the process ended before the "min date selected at the slicer" or the process started after the "max date selected at the slicer" then it returns N otherwise Y.

Steps =
VAR _MaxSelected = MAXX ( ALLSELECTED ( Calendar), Calendar[Date] )
VAR _MinSelected = MINX ( ALLSELECTED ( Calendar), Calendar[Date] )
RETURN
    IF ( tblExtract[Step 4] < _MinSelected || tblExtract[Step 1] > _MaxSelected,
        "N", "Y")

 I hope this helps, if so please accept as a solution. Kudos are welcome😁.

View solution in original post

4 REPLIES 4
pcoley
Resolver I
Resolver I

@Mikeincairns 
Please try with this measure:
Logic: if the process ended before the "min date selected at the slicer" or the process started after the "max date selected at the slicer" then it returns N otherwise Y.

Steps =
VAR _MaxSelected = MAXX ( ALLSELECTED ( Calendar), Calendar[Date] )
VAR _MinSelected = MINX ( ALLSELECTED ( Calendar), Calendar[Date] )
RETURN
    IF ( tblExtract[Step 4] < _MinSelected || tblExtract[Step 1] > _MaxSelected,
        "N", "Y")

 I hope this helps, if so please accept as a solution. Kudos are welcome😁.

Thanks for getting me in the right direction.
I am finding it super hard to describe what I want, so dont want to waste anyones time.
I will mark it as solved.
Appreciate your reply veru much,  Thankyou.

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

I am stuggling to explain what I want. 

- It is confidential data so will not be uploading.
- Pretty sure I have provided the sample data (albeit in a screenshot).
- I have taken out sensitive and unrelated data.
- I have a sample of the expected outcome.
Not sure what else to do.  But I appreciate your feedback.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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