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
krkenzi
Frequent Visitor

DAX calculated Column to return new Status until condition is met

Hi all,

 

I am trying to get calculated column to  show me Final Status(Outcome) of each item. If [Status] change to DOWN outcome should stay DOWN until 3 consecutive dates in [Impact] column are 'LN' are acheived. Once acheived Outcome should change back to UP and so on.

DateStatusImpactOutcome
1-Sep LNUP
2-Sep  UP
3-Sep LNUP
4-Sep LNUP
5-Sep LNUP
6-SepDOWN DOWN
7-Sep LNDOWN
8-Sep LNDOWN
9-Sep LNUP
10-Sep  UP
11-Sep LNUP
12-Sep LNUP
13-Sep LNUP
14-Sep LNUP
15-Sep LNUP
16-SepDOWN DOWN
17-Sep LNDOWN
18-Sep  DOWN
19-Sep LNDOWN
20-Sep LNDOWN
21-Sep  DOWN
22-Sep LNDOWN
23-Sep LNDOWN
24-Sep LNUP
25-Sep LNUP
26-Sep LNUP
27-Sep LNUP
28-Sep LNUP
29-Sep LNUP
30-Sep LNUP
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RikVE_wiBAbmIO769?e=Sgyh9x

Screenshot_2.png

 

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

https://1drv.ms/u/s!AiUZ0Ws7G26RikVE_wiBAbmIO769?e=Sgyh9x

Screenshot_2.png

 

works perfrectly

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.