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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

SUM all subjects IF 2 date columns are equal by day, but not by time

Hello everyone, 

 

I'm trying to count how many candidates were never touched in a Vacancy since they applied. I have 2 date/time columns that can tell me that. One is the Candidate Submitted Date (Candidate_SubmittedDate) and the other is Moved to Date (Candidate_CurrentFolder_SetOn). If they match, then the candidate was never touched. 

 

The way I would do it is like the formula below, but given the fact that these fields contain DATE and TIME they will never match as the system does the 2 processes withing a few seconds apart. Is there a way to compare only the DATES in a Measure? Or I need to go in Power Query and change Type or split columns? 

 

_Candidate_Never_Moved = SUMX(report, IF([Candidate_SubmittedDate]=[Candidate_CurrentFolder_SetOn], 1, 0))
 
Do you have any ideas? Thank you very much,
Ovidiu
2 ACCEPTED SOLUTIONS
vik0810
Resolver V
Resolver V

Hi @Anonymous,

 

you can use following formula

 

_Candidate_Never_Moved =
SUMX (
    report,
    IF (
        [Candidate_SubmittedDate].DATE = [Candidate_CurrentFolder_SetOn].DATE,
        1,
        0
    )
)

View solution in original post

Anonymous
Not applicable

Found the issue it's [Candidate_SubmittedDate].[Date]

 

PBIDesktop_b2Vq86ILiw.png

 

Thank you very much! 

Highly appreciated,

Ovidiu

View solution in original post

4 REPLIES 4
vik0810
Resolver V
Resolver V

Hi @Anonymous,

 

you can use following formula

 

_Candidate_Never_Moved =
SUMX (
    report,
    IF (
        [Candidate_SubmittedDate].DATE = [Candidate_CurrentFolder_SetOn].DATE,
        1,
        0
    )
)
Anonymous
Not applicable

Found the issue it's [Candidate_SubmittedDate].[Date]

 

PBIDesktop_b2Vq86ILiw.png

 

Thank you very much! 

Highly appreciated,

Ovidiu

Anonymous
Not applicable

Tried to reverse the fields... They are both DATE/TIME, i don't know why the 2nd appears as grey. 

PBIDesktop_MIC9EKca6w.png

Anonymous
Not applicable

hi @vik0810 

 

I've tried that, but it gives me an error. Not sure where i make a mistake here: 

 

PBIDesktop_qKAZIfm9TA.png

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.