Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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
Solved! Go to Solution.
@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
@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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 20 | |
| 18 | |
| 14 | |
| 14 |