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! Request now

Reply
OParker91
New Member

Calculated Column Static Output once Criteria Hit and Doesn't Reverse

Hi All,

 

I'm trying to add a column to a Summary Table that shows "Lease-up" until a certain criteria is hit, then it changes to "Stabilised" but once it shows "Stabilised" it doesn't change back to "Lease-up" if it then falls out of the initial criteria.

 

The criteria is for the change is:
- Released Count = Property Count
- Occupancy >= 90%

 

OParker91_0-1754989727450.png

 

Once the criteria is hit, the Status should show as "Stabilised" but if the data then changes and falls out of the initially hit criteria, once it sows as "Stabilised" it doesn't revert back to "Lease-up"

 

I've tried using a "First hit date" column but this changes week to week when the data updates in to pbi so this doesn't work - maybe I need a seperate date table to reference? but I'm really stuck on this

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@OParker91 ,Try using

Status =
VAR CurrentStatus =
IF(
AND(
[Released Count] = [Property Count],
[Occupancy] >= 0.9
),
"Stabilised",
"Lease-up"
)
VAR PreviousStatus =
CALCULATE(
MAX('Summary Table'[Status]),
FILTER(
'Summary Table',
'Summary Table'[Property ID] = EARLIER('Summary Table'[Property ID]) &&
'Summary Table'[Date] < EARLIER('Summary Table'[Date])
)
)
RETURN
IF(
PreviousStatus = "Stabilised",
"Stabilised",
CurrentStatus
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@OParker91 ,Try using

Status =
VAR CurrentStatus =
IF(
AND(
[Released Count] = [Property Count],
[Occupancy] >= 0.9
),
"Stabilised",
"Lease-up"
)
VAR PreviousStatus =
CALCULATE(
MAX('Summary Table'[Status]),
FILTER(
'Summary Table',
'Summary Table'[Property ID] = EARLIER('Summary Table'[Property ID]) &&
'Summary Table'[Date] < EARLIER('Summary Table'[Date])
)
)
RETURN
IF(
PreviousStatus = "Stabilised",
"Stabilised",
CurrentStatus
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks so much! Just as a fallback addition, I added an extra constraint to the final IF to say if last week's status or PreviouStatus was "Stabilised" then use this, otherwise use the current status but you gave me 99% of what I needed. Accepted Solution 🙂

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.