Forum Discussion
dofrancis3
Resolver I
2 years agoDate "IF"
Hi Guys! I need your help! Could you help me with a DAX mesure wicth can help me to have the status colomn based on stard and end date. Please the screen below: Thank you for your help
- 2 years ago
dofrancis3 Maybe:
Measure = VAR __Today = TODAY() VAR __Start = MAX( 'Table'[Started] ) VAR __End = MAX( 'Table'[end_date] ) VAR __Result = SWITCH( TRUE(), __Start > __Today, "Upcoming", __End < __Today, "Completed", "Ongoing" ) RETURN __Result Column = VAR __Today = TODAY() VAR __Start = [Started] VAR __End = [end_date] VAR __Result = SWITCH( TRUE(), __Start > __Today, "Upcoming", __End < __Today, "Completed", "Ongoing" ) RETURN __Result
Greg_Deckler
Community Champion
2 years agodofrancis3 Maybe:
Measure =
VAR __Today = TODAY()
VAR __Start = MAX( 'Table'[Started] )
VAR __End = MAX( 'Table'[end_date] )
VAR __Result =
SWITCH( TRUE(),
__Start > __Today, "Upcoming",
__End < __Today, "Completed",
"Ongoing"
)
RETURN
__Result
Column =
VAR __Today = TODAY()
VAR __Start = [Started]
VAR __End = [end_date]
VAR __Result =
SWITCH( TRUE(),
__Start > __Today, "Upcoming",
__End < __Today, "Completed",
"Ongoing"
)
RETURN
__Resultdofrancis3
Resolver I
2 years agoThank you so much Greg_Deckler