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
yaman123
Post Partisan
Post Partisan

YTD without a date column

Hi all, 

 

I need help with creating a measure which will give me the YTD value without a date column. 

 

I have a measure which calculates the budget per category

Total Budget Values = SUMX(VALUES(FM_COST_CENTRE_REPORT_PBI[CATEGORY]),CALCULATE(MAX(FM_COST_CENTRE_REPORT_PBI[BUDGET_VALUE])))
 
I have a accounting period column which is used as a slicer to select the period to report on. 
 
I need to be able to select a period and the budget should calculate the YTD value for that category. 
 
E.g if i select period 4, the category IT should have a total value of 2000 as this sums periods 1,2,3 and 4. 
 
Any help is appreciated! 
 
TIA
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@yaman123 

You can create a separate distinct table to use the period as the slicer, then create a measure to get expected value.

 

Period = DISTINCT('Table'[Period])
 
Measure = CALCULATE(SUM('Table'[Budget Value]),FILTER(ALLSELECTED('Table'),[Category]=MAX([Category]) && [Period]<=SELECTEDVALUE(Period[Period])))
Vpazhenmsft_0-1630478739373.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@yaman123 

You can create a separate distinct table to use the period as the slicer, then create a measure to get expected value.

 

Period = DISTINCT('Table'[Period])
 
Measure = CALCULATE(SUM('Table'[Budget Value]),FILTER(ALLSELECTED('Table'),[Category]=MAX([Category]) && [Period]<=SELECTEDVALUE(Period[Period])))
Vpazhenmsft_0-1630478739373.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
FarhanAhmed
Community Champion
Community Champion

Can you please share some sample data for your requirement along with desired results?







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

Proud to be a Super User!




Hi @FarhanAhmed 

 

I am hoping this makes sense. 

 

In yellow is what i expect. It should give me the YTD total per category when i select a account period from a slicer. E.g if i select account period 4, the total for consultancy is 600 and for IT costs is 120000. 

 

Capture.PNG

Try something like this.

 

_YTD = CALCULATE(SUM('YTD'[Budget]),FILTER(ALLEXCEPT('YTD','YTD'[Category]),'YTD'[PeriodID]<=MAX('YTD'[PeriodID])))






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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors