Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 > monthday
Then 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 > monthday
Then 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
142 | |
75 | |
64 | |
52 | |
47 |
User | Count |
---|---|
219 | |
89 | |
73 | |
66 | |
60 |