Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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:
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
67 | |
65 | |
43 | |
42 |
User | Count |
---|---|
47 | |
38 | |
28 | |
28 | |
27 |