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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhmiller89
Helper V
Helper V

Time Lapse

I have a column called "WorkDate" for Job Reports. Each Job Number has multiple Job Reports. I need to ultimately figure out how to show Job Numbers that have not had a Job Report entered within the last 90 days. I wrote a measure LastJR= MAX(WorkDate) but got stuck after that

1 ACCEPTED SOLUTION
vmakhija
Post Prodigy
Post Prodigy

@bhmiller89

 

You can use the below measure:

MAX_WorkDate = DATEDIFF(

CALCULATE(MAX(Job_Report[WorkDate]),ALLEXCEPT(Job_Report,Job_Report[JobNumber])),

NOW(),

DAY)

 

I assumed your data might look like below -

JobReport.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So MAX_WorkDate will give you number of days.

 

Regards

View solution in original post

2 REPLIES 2
vmakhija
Post Prodigy
Post Prodigy

@bhmiller89

 

You can use the below measure:

MAX_WorkDate = DATEDIFF(

CALCULATE(MAX(Job_Report[WorkDate]),ALLEXCEPT(Job_Report,Job_Report[JobNumber])),

NOW(),

DAY)

 

I assumed your data might look like below -

JobReport.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So MAX_WorkDate will give you number of days.

 

Regards

vmakhija
Post Prodigy
Post Prodigy

@bhmiller89

Can you please post some sample data to better explain your requirement.

 

Regards

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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