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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SamK428113
Frequent Visitor

Datediff not showing correct dates, Please help

Have two measures with start and end time stamps displaying correctly. 

 

Start Measure:

 

Test 510 Completed = CALCULATE([Test Max Time Stamp], FILTER('CWMT_MS_QUOTINGREQUESTTRACKER - Master', 'CWMT_MS_QUOTINGREQUESTTRACKER - Master'[TASKNAME] = "510 - Generate Customer Package" && 'CWMT_MS_QUOTINGREQUESTTRACKER - Master'[TASKSTATUS] = "Completed"))
 
End Measure: 
 
Test RFP Due = MAX('CWMT_MS_QUOTINGREQUESTTRACKER - Master'[RFPRESPONSEDUEEXTERNALDATE])
 
Created a measure to calculate the difference between the two, but not getting the numbers as expected.
 
Test 1 =
VAR _c =
    CALCULATE(MAX('CWMT_MS_QUOTINGREQUESTTRACKER - Master'[RFPRESPONSEDUEEXTERNALDATE]), FILTER(ALLSELECTED('CWMT_MS_QUOTINGREQUESTTRACKER - Master'), [COMPANYNAME]= 'CWMT_MS_QUOTINGREQUESTTRACKER - Master'[COMPANYNAME]))
Var _d =
    CALCULATE(
        MAX('CWMT_MS_QUOTINGREQUESTTRACKER - Master'[TIME_STAMP]),
        FILTER(ALL('CWMT_MS_QUOTINGREQUESTTRACKER - Master'),
        [COMPANYNAME] = SELECTEDVALUE('CWMT_MS_QUOTINGREQUESTTRACKER - Master'[COMPANYNAME])
        && 'CWMT_MS_QUOTINGREQUESTTRACKER - Master'[TASKNAME] = "510 - Generate Customer Package"
        && 'CWMT_MS_QUOTINGREQUESTTRACKER - Master'[TASKSTATUS] = "Completed"))
RETURN
    DATEDIFF(_d, _c, DAY)
 
Test 1 results.
 
SamK428113_0-1684183109785.png

Any idea what is causing the issue? 

 
 
1 REPLY 1
Anonymous
Not applicable

Hi @SamK428113 ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.