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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.