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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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.