Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
My example data:
I'm trying to use the TODAY() function to dynamically calculate YTD / YTG values using various measures:
Gets the Current Month Number (so 10 for October)
Tries to Calculate the SUM of Values where month is less than or equal to 10 (curr. month)
Manual Version (would have to be updated monthly):
How can I make this work?
Solved! Go to Solution.
Hi,
you need to use FILTER() to make this work. Like this:
Total YTD Value =
CALCULATE (
SUM ( 'A - Monthly Values'[Value] ),
FILTER ( 'A - Monthly Values', 'A - Monthly Values'[Month] < [Current Month] )
)
Proud to be a Super User!
SOLVED:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
81 | |
52 | |
39 | |
35 |
User | Count |
---|---|
95 | |
79 | |
52 | |
49 | |
47 |