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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sage
New Member

Measure - Creating a measure for net budget at start of period relative to date hierarchy

Hi folks, I am new to DAX. I am trying to build a KPI/Measure that will arrive at the net budget at the start of a period/ date selection and utilize this figure in a calculation.

 

Below is a brief explanation of what the measure is expected to do, and the issue I am running into. At the bottom of this post are tables of sample data, with a computational breakdown provided via excel.

 

Defining the Measure/Challenge:

 

I would like a measure that can tell me if the current hours logged by an employee are billable - 'AKA' covered by the NET budget at the start of that period.

 

For example: We have a total budget of 100. In 2019 we have 20 of actuals / utilization. We are left with a net budget of 80 and our hours are 100% billable (fully covered by the budget). If in 2020 we utilize 100, then only 80% of this is billable.

 

The primary issue I am having is in calculating the net starting budget (aka that for the 2020 calculation, the net starting budget is 80), although I would appreciate help drafting the whole measure.

 

This measure will have a few components:

 

1. Find actuals for the period.

2. Find the net total budget at the beginning of this period (This is where I am struggling).

3. Return a value: If the current period actuals are < the starting net budget, return 100%, if there is 0 or negative starting net budget return 0%, if the current period actuals are > the starting net budget subtract these two figures and divide by actuals to find the % of actuals covered by budget.

 

Example data:

Budget Data

Project NameTrade NameBudget Quantity
Project 1Developer20
Project 2Designer25
Project 2Developer40

 

Actual Data

Project NameTrade NameActual QuantityPost Date
Project 1Developer102019-11-02
Project 1Developer132021-10-15
Project 1Developer202020-11-03
Project 1Developer152021-02-10
Project 2Designer162020-05-04
Project 2Developer42022-02-19
Project 2Designer152019-09-11
Project 2Designer12021-04-18
Project 2Developer202019-04-02

 

Example Calculation (The rows here are broken out to show how to arrive at the final measure, which is split into total budget, net starting budget, and the ratio).

 

Hierarchy shown annually:

Developer2019202020212022
Actual3020284
Budget60606060
Net Starting Budget603010-18
Ratio/Measure100%100%36%0%

 

Hierarchy shown monthly, within a year (drilling down)

2021/DeveloperJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
Actual01500000001300
Total Budget606060606060606060606060
Net Starting Budget10-5-5-5-5-5-5-5-5-18-18-18
Ratio/Measure0%67%0%0%0%0%0%0%0%0%0%0%
0 REPLIES 0

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.