Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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%
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
Solved! Go to Solution.
@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
)
Proud to be a 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
)
Proud to be a Super User! |
|
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 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |