Forum Discussion
vjnvinod
Impactful Individual
6 years agoDAX help
i have some list of opportunities which has Anticipated Win date, see below i want to create a coloumn which subtracts (Anticipated date-Current date)[Note: current date dax should be used] and giv...
- 6 years ago
Hi vjnvinod ,
We can create two measures in this table visual to meet your requirement:
Date Counts = DATEDIFF ( TODAY (), MIN ( 'Table'[AnticipatedWinDate] ), DAY )Status = IF ( [Date Counts] < 0, "Lapsed", IF ( [Date Counts] <= 30, "0-30", IF ( [Date Counts] <= 60, "30-60", IF ( [Date Counts] <= 90, "60-90", "More than 90" ) ) ) )
Best regards,
v-lid-msft
Community Support
6 years agoHi vjnvinod ,
We can create two measures in this table visual to meet your requirement:
Date Counts =
DATEDIFF ( TODAY (), MIN ( 'Table'[AnticipatedWinDate] ), DAY )
Status =
IF (
[Date Counts] < 0,
"Lapsed",
IF (
[Date Counts] <= 30,
"0-30",
IF (
[Date Counts] <= 60,
"30-60",
IF ( [Date Counts] <= 90, "60-90", "More than 90" )
)
)
)
Best regards,