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
lynnzrae
Helper I
Helper I

Adjusting my DAX so if the two dates are the same it counts as 1 and not 0

Hello.  I have the folloiwng DAX.

IF(

                ISBLANK(TFOIATab[Response Complete]),

                DATEDIFF(TFOIATab[Request Received], TODAY(), DAY),

                DATEDIFF(TFOIATab[Request Received], TFOIATab[Response Complete], DAY)

)

 

Right now if the date received and response complete are the same day, it counts as 0.  I would like for it to count as 1.  Can someone please advise what to add to the DAX to provide this change?  Thanks.

1 ACCEPTED SOLUTION
techies
Super User
Super User

Hi @lynnzrae please check this 

 

IF(
ISBLANK(TFOIATab[Response Complete]),
DATEDIFF(TFOIATab[Request Received], TODAY(), DAY),
MAX(1, DATEDIFF(TFOIATab[Request Received], TFOIATab[Response Complete], DAY))
)

― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

View solution in original post

1 REPLY 1
techies
Super User
Super User

Hi @lynnzrae please check this 

 

IF(
ISBLANK(TFOIATab[Response Complete]),
DATEDIFF(TFOIATab[Request Received], TODAY(), DAY),
MAX(1, DATEDIFF(TFOIATab[Request Received], TFOIATab[Response Complete], DAY))
)

― Power BI | Microsoft Fabric | PL-300 | DP-600 | Blog: medium.com/@cseprs_54978

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.