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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TG-516
Frequent Visitor

How to do dynamical calculation based on multiple conditions and specific date?

I want to :

1. when incidents closed before March 31, 2023, I need to identify incidents that completed the "Inv+Act" phase(workflow phase name) <= 60days 

  • Blue: ≤ 60 days 
  • Orage: > 60 days 

2. when incidents closed after March 31, 2023, I need to identify incidents that completed the "Inv+Act" phase(workflow phase name) <= 90days 

  • Dark Blue: ≤ 90 days 
  • Dark Red: > 90 days 

3. Include the percentage of Closed incidents that completed Inv+Act<=60days/ 90 days

 

Example chart (but haven't added percentage line yet)

TG516_0-1686952631402.png

 

Some sample data:

TG516_1-1686952876994.png

 

Note: If there are multiple investigations, sum up the durations in all Inv+Act Phase.

 

How can I do above in PowerBI? Thank you for your help in advance.

3 REPLIES 3
TG-516
Frequent Visitor

Sample data:

Columns in order: Incident ID, Incident Number, Workflow Phase Name, Submitted Date, Due Date, Days to Complete Phase

64NC-2022-00064Review3/5/20233/7/20234
64NC-2022-00064Closed3/9/2023null0
68NC-2022-00068Review3/7/20233/9/20232
68NC-2022-00068Closed3/9/2023null0
71NC-2022-00071Review3/14/20233/16/20232
71NC-2022-00071Closed3/16/2023null0
80NC-2022-00080Review3/6/20233/8/20233
80NC-2022-00080Closed3/9/2023null0
82NC-2022-00082Review3/8/20233/10/20231
82NC-2022-00082Closed3/9/2023null0
84NC-2022-00084Inv + Act3/8/20232/17/202311
84NC-2022-00084Review3/19/20233/21/20232
84NC-2022-00084Closed3/21/2023null0
110NC-2023-00016Review3/9/20233/11/20234
110NC-2023-00016Closed3/13/2023null0
120NC-2023-00026Review3/5/20233/7/20230
120NC-2023-00026Inv + Act3/5/20234/7/202310
120NC-2023-00026Review3/15/20233/17/20234
120NC-2023-00026Closed3/19/2023null0
121NC-2023-00027Review3/2/20233/4/20233
121NC-2023-00027Closed3/5/2023null0
124NC-2023-00030Review3/2/20233/4/20230
124NC-2023-00030Inv + Act3/2/20234/4/202361
126NC-2023-00032Closed3/2/2023null0
127NC-2023-00033Review3/19/20233/21/20232
127NC-2023-00033Closed3/21/2023null0
128NC-2023-00034Review3/19/20233/21/202324
129NC-2023-00035Closed3/1/2023null0
132NC-2023-00038Inv + Act3/13/20233/20/20239
132NC-2023-00038Review3/22/20233/24/20231
132NC-2023-00038Closed3/23/2023null0
134NC-2023-00040Review3/8/20233/10/20235
134NC-2023-00040Closed3/13/2023null0
135NC-2023-00041Review3/26/20233/28/20232
135NC-2023-00041Closed3/28/2023null0
137NC-2023-00043Review3/29/20233/31/20235
137NC-2023-00043Closed4/3/2023null0
138NC-2023-00044Review3/28/20233/30/20230
138NC-2023-00044Closed3/28/2023null0
139NC-2023-00045Review3/29/20233/31/20237
140NC-2023-00046Assign3/8/20233/11/20231
140NC-2023-00046Inv + Act3/9/20234/11/202375
142NC-2023-00048Review3/15/20233/17/20231
142NC-2023-00048Inv + Act3/16/20234/18/202312
142NC-2023-00048Review3/28/20233/30/20236
142NC-2023-00048Closed4/3/2023null0
Akshaan
Frequent Visitor

Hi @TG-516 , I would appreciate if you could attach some sample data here.

Hi @Akshaan, I am not sure if you can see my reply with sample data. Thank you for taking the time to look at it. Much appreciated!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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