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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors