Creating a new Date Column based on multiple criteria - PowerBI

karmaimages

Board Regular
Joined
Oct 1, 2009
Messages
112
Office Version
  1. 365
Platform
  1. Windows
Hi,



I need to add SLA dates to a report, which change based on the severity and impact of the item logged, I have a table as below:



ImpactSeverityLogged DateSLA
A101/01/2023=Logged Date+2 months
A201/01/2023=Logged Date+2 months
A301/01/2023=Logged Date+2 months
A401/01/2023=Logged Date+2 months
B101/01/2023=Logged Date+9 months
B201/01/2023=Logged Date+9 months
B301/01/2023=Logged Date+9 months
B401/01/2023=Logged Date+9 months
D101/01/2023=Logged Date+9 months
D201/01/2023=Logged Date+9 months
C101/01/2023=Logged Date+12 months
C201/01/2023=Logged Date+12 months
C301/01/2023=Logged Date+12 months
C401/01/2023=Logged Date+12 months
D301/01/2023=Logged Date+12 months
D401/01/2023=Logged Date+12 months


Would someone be able to help me work out how to add the SLA date based on the other 2 criteria?
 
The options shown are the only ones that apply, A - D and 1 - 4 for each letter. and each have an SLA calculated by the Logged Date + X months depending on what the Severity + Impact is
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
It appears that impact D is the only case where severity is actually relevant - is that correct?
That would be Correct

All A = 2 Months
All B = 9 Months
All C = 12 Months
D1 & D2 = 9 Months
D3 & D4 = 12 Months
 
Upvote 0
Then assuming those are the only possible values, you could add a custom column using the formula:

Power Query:
=if [Impact]="A" then Date.AddMonths([Logged Date],2) else if [Impact]="B" then Date.AddMonths([Logged Date],9) else if [Impact] = "C" then Date.AddMonths([Logged Date],12) else if [Severity] <3 then Date.AddMonths([Logged Date],9) else Date.AddMonths([Logged Date],12)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top