Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
TotunG
Resolver I
Resolver I

Getting YTD / YTG Values (Dynamic)

Hi,

 

My example data:

TotunG_3-1697622929739.png

 

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)

TotunG_0-1697622781802.png

Tries to Calculate the SUM of Values where month is less than or equal to 10 (curr. month)

TotunG_1-1697622815524.png

Manual Version (would have to be updated monthly):

TotunG_2-1697622902098.png

 

How can I make this work?

1 ACCEPTED SOLUTION
TotunG
Resolver I
Resolver I

2 REPLIES 2
bolfri
Solution Sage
Solution Sage

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] )
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




TotunG
Resolver I
Resolver I

SOLVED: 

 

TotunG_0-1697623459321.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors