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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.