Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
94 | |
89 | |
32 | |
28 |