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

Days Between Two Dates Filtered by a Status

IMG_1803.jpeg

I have to create the difference between the physical date and the created on date, using the the "received pricing" status in the workflow status. 

I am needing to know how many days it took to get to that specific status("Received pricing" in the workflow status columns-which has multiple different status types). 

so basically how many days between physical date to created date with the filter "received pricing" in the workflow status column. 

Please advise.

 

3 REPLIES 3
JamesFR06
Resolver IV
Resolver IV

Look at you status it look like you have a "-" before 

JamesFR06
Resolver IV
Resolver IV

Hi

 

Try this as a measure :

JamesFR06_0-1704747096050.png

 in text form :

NBDays =
var statusG=SELECTEDVALUE(Testdare[Status])
return
if(statusG="Received Pricing",DATEDIFF(SELECTEDVALUE(Testdare[createdon.date]),SELECTEDVALUE(Testdare[Physical Date]),DAY),0)

IMG_1804.jpeg

Hi,

 

I put this code:

 

NBDays =

var statusG=SELECTEDVALUE(cr93f_cpsoo[Workflow Status])

return

if(statusG="Received Pricing",DATEDIFF(SELECTEDVALUE(cr93f_cpsoo[createdon.date]),SELECTEDVALUE(cr93f_cpsoo[Physical Date]),DAY),0)

 

All the days just show as 0. Please advise.

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.