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
I have a sample table, in that i sales id i need to create the age for the sales id's as per the status
if the status is open
From "Created Date" till Today ; If CLOSED (WON or LOST) From "Created Date" till "WonLostDate"
kindly help me on this
need to write a measure
Solved! Go to Solution.
@Anonymous Maybe:
Column =
SWITCH(TRUE(),
[Status] = "Open", ( TODAY() - [Created Date] ) * 1.,
[Status] = "Won" || [Status] = "Lost", ( [WonLostDate] - [Created Date] ) * 1.
)
@Anonymous Maybe:
Column =
SWITCH(TRUE(),
[Status] = "Open", ( TODAY() - [Created Date] ) * 1.,
[Status] = "Won" || [Status] = "Lost", ( [WonLostDate] - [Created Date] ) * 1.
)
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 |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |