The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
)
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
33 | |
13 | |
12 | |
9 | |
7 |