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!View all the Fabric Data Days sessions on demand. View schedule
Hello everybody,
I have the following problem:
I would like to be able to mark the following values "YTD" in my date table:
1.1.19-19.11.19
1.1.18-19.11.18
1.1.17-19.11.17
etc.
I am very grateful for any idea!
Thank you
Steffen
Solved! Go to Solution.
Hi @Stewwe ,
You can create the following calculated column in your Date table:
YTD_Today =
VAR monthtoday =
MONTH ( TODAY () ) * 100
+ DAY ( TODAY () )
VAR monthday =
MONTH ( 'Calendar'[Date] ) * 100
+ DAY ( 'Calendar'[Date] )
RETURN
monthtoday > monthdayThen apply this column to the filter and select "True":
Here is a demo, please try it:
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-joesh-msft ,
if I want to solve this by measures, your approach is perfectly clear to me.
But what I want is to include the YTD logic in my date dimension in order to be able to filter through various measures.
According to my logic, a calculated column must mark all date entries up to today's date.
I hope my question became a little clearer.
Bye
Steffen
Hi @Stewwe ,
You can create the following calculated column in your Date table:
YTD_Today =
VAR monthtoday =
MONTH ( TODAY () ) * 100
+ DAY ( TODAY () )
VAR monthday =
MONTH ( 'Calendar'[Date] ) * 100
+ DAY ( 'Calendar'[Date] )
RETURN
monthtoday > monthdayThen apply this column to the filter and select "True":
Here is a demo, please try it:
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much @v-joesh-msft . I am completely thrilled by the simplicity of the formula.
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!