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
darlingent
New Member

Calculate Target Based on Current Date and Date Table

Hi,

I have a simple question but cannot seem to find a match on the forums. My company has different branches and we set spending targets for the branch's budget based on a daily target rate. The target rates are in a separate column in a custom Date table which is marked as a Date table. 

 

I believe I need a measure to calculate the Target Budget spent amount based on the current day. So for example if today is 12/01 and we're looking at the Logistics department, the Target Spent = [Logistics Budget] * 0.054. If it was 12/5 it would be Target Spent = [Logistics Budget] * 0.061

 

I've tried to solve this with a calculated column however my calculated column only works on the overall company budget and doesn't properly slice when groups try to interact with their report and see the different department budgets.

 

 

DateTargetFiscal Year QTR
12/1/20230.054Q1
12/2/20230.056Q1
12/3/20230.057Q1
12/4/20230.059Q1
12/5/20230.061Q1
12/6/20230.063Q1
12/7/20230.064533333Q1
12/8/20230.066304762Q1
12/9/20230.06807619Q1
12/10/20230.069847619Q1
12/11/20230.071619048Q1
12/12/20230.073390476Q1
12/13/20230.075161905Q1
12/14/20230.076933333Q1
12/15/20230.078704762Q1
12/16/20230.08047619Q1
12/17/20230.082247619Q1
12/18/20230.084019048Q1
12/19/20230.085790476Q1
12/20/20230.087561905Q1
12/21/20230.089333333Q1
12/22/20230.091104762Q1
12/23/20230.09287619Q1
12/24/20230.094647619Q1
12/25/20230.096419048Q1
12/26/20230.098190476Q1
12/27/20230.099961905Q1
12/28/20230.101733333Q1
12/29/20230.103504762Q1
12/30/20230.10527619Q1
12/31/20230.107047619Q1
1/1/20240.108819048Q2
1/2/20240.110590476Q2
1/3/20240.112361905Q2
1/4/20240.114133333Q2
1/5/20240.115904762Q2
1/6/20240.11767619Q2
1/7/20240.119447619Q2
1/8/20240.121219048Q2
1/9/20240.122990476Q2
1/10/20240.124761905Q2
1/11/20240.126533333Q2
1/12/20240.128304762Q2
1/13/20240.13007619Q2
1/14/20240.131847619Q2
1/15/20240.133619048Q2
1/16/20240.135390476Q2
1/17/20240.137161905Q2
2 REPLIES 2
DataInsights
Super User
Super User

@darlingent,

 

This measure uses SUMX, which iterates the Dates table and multiplies Logistics Budget by the daily target rate:

 

Target Spent = SUMX ( Dates, [Logistics Budget] * Dates[Target] )

 

DataInsights_0-1703705684270.png

 





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

Proud to be a Super User!




Fowmy
Super User
Super User

@darlingent 

You can create a measure as follows, assuming you already have measure to calculate the Logistics Budge

Target Spent = [Logistics Budget] * SELECTEDVALUE ( DateTable[Target] )



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

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