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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syah_Adrian
Regular Visitor

if date plus 15 minutes greater than date need help!!!

Need helps

Hi, i newbie power BI

i have a case to calculate below formula
if date (A) plus 15 minutes greater than date (B) than Yes else if No

can you help me to describe on DAX function

 

thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Syah_Adrian ,

Try like

if((Table[Date A] + time(0,15,0))>Table[Date B] ,"Yes","No")

View solution in original post

6 REPLIES 6
MarcoPessina
Resolver IV
Resolver IV

Hi @Syah_Adrian ,

you can also use the DATEDIFF function like this:

 

CalculatedColumn = IF(DATEDIFF(Table[Date(A)],Table[Date(B)],MINUTE)>15,"Yes","No")
 
Cheers,
Marco

till have a error

"A single value for column 'Date(A)' in table 'Table1' cannot determined..."

 

 

my table is CMDB_Incident have column reported_date and created_date

i want to see if reported_date + 15 minutes greater than created_date or no 

i already use 
CalculatedColumn = IF(DATEDIFF(Table[Date(A)],Table[Date(B)],MINUTE)>15,"Yes","No")

and
if((Table[Date A] + time(0,15,0))>Table[Date B] ,"Yes","No")

still have error
A single value for column 'Date(A)' in table 'Table1' cannot determined..."

amitchandak
Super User
Super User

@Syah_Adrian ,

Try like

if((Table[Date A] + time(0,15,0))>Table[Date B] ,"Yes","No")

sory after i look in again this method is correct

thanks !!!

still have a error

and i forgot to mention, after that function succeed i want to calculate total "Yes" 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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