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
ashutosh
Helper I
Helper I

Need Help with specific requirement

Hello Everyone,

 

I have one specific requirement in my project.

I have two dates for different shipments:

1. First In Transit

2. Delivered of First Mile

So I have to create a measure in which I have to find if 'First In Transit' event is greater than or equal to 4 days from now (today's date) and 'Delivered of First Mile' is empty i.e, No delivery event. It should give me some result like 'Not Delivered Yet'.  Please have a look at the screenshot for more info.Screenshot_8.png

 

 

 

 

4 REPLIES 4
v-ljerr-msft
Employee
Employee

Hi @ashutosh,

 

Based on my test, you should be able to use the formula below to create a new measure and show it on the report in this scenario. Smiley Happy

Measure =
IF (
    TODAY () - MAX ( Table1[First In Transit] )
        <= 4
        && ( ISBLANK ( MAX ( Table1[Delivered of First Mile] ) ) ),
    "Not Delivered Yet"
)

m1.PNG

 

Regards

@v-ljerr-msft Hi,

 

Thank you for your response. Could you please elaborate (for my understanding) why you selected MAX. 

The condition here is, I need to show 'Not Delivered Yet' only to those ID's which have First in Transit Event more than 4 days from now and Delivered of first Mile is empty. And I have to consider only working days i.e. Mon to Fri.

ashutosh
Helper I
Helper I

####

ashutosh
Helper I
Helper I

@Greg_Deckler , @v-shex-msft Please, could you help me out here.

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.