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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Power BI Date calculation

Hi,

How to Calculate  Duedate greater than Current date and Compare Status is For Solidation , if the conditon is true "Beyond SLA"  false "SLA", See below Screen shot

 

sla.PNG

 

 

 

 

 

 

 

 

 

 

 

I tried 

SLAStatus = SWITCH( TRUE(),VALUE(TODAY() >'sheet1'[DueDate]))  && if(sheet1[Staus] == "For Solidation"), "BeyondSLA","SLA")
 
but I/m getting Error, can you please help me to solve this issue?
1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@Anonymous 

 

Create a calculated column.

SLAStatus = IF(MyTable[Duedate]>TODAY() && MyTable[Status]="For Solidation","Beyond SLA","SLA")

 Capture.JPG



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

1 REPLY 1
nandukrishnavs
Super User
Super User

@Anonymous 

 

Create a calculated column.

SLAStatus = IF(MyTable[Duedate]>TODAY() && MyTable[Status]="For Solidation","Beyond SLA","SLA")

 Capture.JPG



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors