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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Combining Linear/Nonlinear Budgets

My current data assumes that every "Task" has a linear budget. Some of the tasks do not. 

Below is an example of the tables I'm working with. The Budget Table gives the budget linearly, regardless of if the task has a linear budget or not. This cannot be changed. To work around that I'm hoping to create a measure that takes the total budget, whether that be SUM(Budget) or MAX(Budget YTD) and multiply it by the rolling sum of the Budget % from the Nonlinear Budget Table, if that task is nonlinear. 

 

Current DataCurrent Data Model RelationshipsModel Relationships

 

I have tried calculated columns, measures and whatever else from different threads in this forum but none of them worked properly. 

In the end I'd like to show the Linear/Nonlinear Budget YTD on a graph in one single line by date.

If more information is required, I'll respond as quickly as possible.

 

Thanks!

11 REPLIES 11
lbendlin
Super User
Super User

Is the nonlinear budget percentage valid  for all the dates in that month? Not cumulative throughout the month?

Anonymous
Not applicable

I'm not sure why my comment keeps getting deleted. But yes it technically is the budget percentage for the entire month. I'd also like to see it smoothed. I accidentally showed my budget % in a cumulative way, which isn't the case in the data. I've edited the Nonlinear Budget Table in the comment accordingly. 

 

I'm looking for both the Budget YTD and the Budget YTD Smoothed. Here is an example:

 

PBI Help 4.PNG

 

Still trying to understand all the mechanics - budgeting is not my forte.   If you still need assistance could we maybe start over with a fresh premise so I can ignore all the above changes?

Anonymous
Not applicable

Yes my apologies, somehow all 3 comments got posted after some time passed so it got confusing. 

Essentially some tasks are linear, and some are nonlinear. The current data assumes all are linear and does a calculation like so:

 

Budget = ( [DaysInQuestion] / [DaysInYear] ) * [TotalBudget]

Budget YTD = ( [DaysInQuestionYTD] / [DaysInYear] ) * [TotalBudget]

*Please note that these are imported from Analysis Services so they are static values in the report I am using.

 

However some tasks don't have linear budgets, which is defined in the 'Linearity Table'. These nonlinear budgets are released in percentages. So for example, the budget for task 1.3.2 only recieves 12.5% of its total budget in July, another 12.5% more of its total budget in August and 75% more of its total budget in September. This means that by September, the task will have access to the full 100% of its total budget ( 12.5% + 12.5% + 75% = 100% ). These values are found in the 'Nonlinear Budget Table'. 

 

I want to be able to see the curve for the nonlinear budgets YTD like the image below. Both smoothed so that the percentage is gradual throughout the month, and with the whole percentage being released in the first day.

 

pbih.PNG

 

Anonymous
Not applicable

I accidentally replied to your last comment with my response.

Anonymous
Not applicable

My last comment got deleted so my apologies if this gets posted twice.

 

Technically yes, the budget percentage is the percent of the total year budget that gets released in that month. Which is why I also would like to see it smoothed. The example below is what I'm looking for.

LinearityKeyDateBudget %Budget % Cumulative Budget % SmoothedTotal Year BudgetBudget YTDBudget YTD Smoothed
1.2D2022-07-040.250.250.00999.00024.750.85
1.2D2022-07-050.250.250.01799.00024.751.71
1.2D2022-07-060.250.250.02699.00024.752.56
1.2D0.250.2599.00024.75
1.2D2022-07-150.250.250.1399.00024.7512.38
1.2D0.250.2599.00024.75
1.2D2022-07-290.250.250.2599.00024.7524.75
1.2D2022-08-010.50.750.26799.00074.2526.40
1.2D0.50.7599.00074.25
1.2D2022-08-150.50.750.599.00074.2549.50
1.2D0.50.7599.00074.25
1.2D2022-08-310.50.750.7599.00074.2574.25
1.2D2022-09-010.2510.75899.0009975.08
1.2D0.25199.00099
1.2D2022-09-150.2510.87599.0009986.63
1.2D0.25199.00099
1.2D2022-09-300.251199.0009999

 

I also just realized my Nonlinear Budget Table had cumulative percentages, but in my data they aren't cumulative. I've edited the original comment and I'll provide the revised version below as well.

 

Nonlinear Budget Table

TaskCategoryFirst Day of MonthDateKeyBudget %
1.2D2022-07-04202207040.25
1.2D2022-08-01202208010.5
1.2D2022-09-01202209010.25
1.3.2B2022-07-04202207040.125
1.3.2B2022-08-01202208010.125
1.3.2B2022-09-01202209010.75
3.1.2A2022-07-04202207040.7
3.1.2A2022-08-01202208010
3.1.2A2022-09-01202209010.3
Anonymous
Not applicable

The nonlinear budget percent is the % of the total budget for the whole year that gets released on that month. So technically yes, it's the same for every date in that month but I'd also like to see it smoothed so that it's cumulative throuhgout the month. Here's an example:

 

LinearityKeyDateBudget %Budget % Cumulative Budget % SmoothedTotal Year BudgetBudget YTDBudget YTD Smoothed
1.2D2022-07-040.250.250.00899.00024.750.80
1.2D2022-07-050.250.250.01699.00024.751.60
1.2D2022-07-060.250.250.02499.00024.752.40
1.2D0.250.2599.00024.75
1.2D2022-07-150.250.250.1399.00024.7512.38
1.2D0.250.2599.00024.75
1.2D2022-07-290.250.250.2599.00024.7524.75
1.2D0.250.2599.00024.75
1.2D2022-08-010.50.750.26799.00074.2526.40
1.2D0.50.7599.00074.25
1.2D2022-08-150.50.750.599.00074.2549.50
1.2D0.50.7599.00074.25
1.2D2022-08-310.50.750.7599.00074.2574.25
1.2D2022-09-010.2510.75899.0009975.08
1.2D0.25199.00099
1.2D2022-09-150.2510.87599.0009986.63
1.2D0.25199.00099
1.2D2022-09-300.251199.0009999

 

I also just realized that my Nonlinear Budget Table is incorrect. The Budget %'s are not cumulative in the data. Please see the corrected version below.

 

TaskCategoryFirst Day of MonthDateKeyBudget %
1.2D2022-07-04202207040.25
1.2D2022-08-01202208010.5
1.2D2022-09-01202209010.25
1.3.2B2022-07-04202207040.125
1.3.2B2022-08-01202208010.125
1.3.2B2022-09-01202209010.75
3.1.2A2022-07-04202207040.7
3.1.2A2022-08-01202208010
3.1.2A2022-09-01202209010.3

 

Anonymous
Not applicable

Budget Table

TaskCategoryDateKeyBudget Budget YTDLinearityKey
1.2A2022070410101.2A
1.2A2022071510201.2A
1.2A2022072910301.2A
1.2A2022080110401.2A
1.2A2022081510501.2A
1.2A2022083110601.2A
1.2A2022090110701.2A
1.2A2022091510801.2A
1.2A2022093010901.2A
1.2D2022070411111.2D
1.2D2022071511221.2D
1.2D2022072911331.2D
1.2D2022080111441.2D
1.2D2022081511551.2D
1.2D2022083111661.2D
1.2D2022090111771.2D
1.2D2022091511881.2D
1.2D2022093011991.2D
1.3.2B20220704551.3.2B
1.3.2B202207155101.3.2B
1.3.2B202207295151.3.2B
1.3.2B202208015201.3.2B
1.3.2B202208155251.3.2B
1.3.2B202208315301.3.2B
1.3.2B202209015351.3.2B
1.3.2B202209155401.3.2B
1.3.2B202209305451.3.2B
2.1.2C20220704772.1.2C
2.1.2C202207157142.1.2C
2.1.2C202207297212.1.2C
2.1.2C202208017282.1.2C
2.1.2C202208157352.1.2C
2.1.2C202208317422.1.2C
2.1.2C202209017492.1.2C
2.1.2C202209157562.1.2C
2.1.2C202209307632.1.2C
2.2.3A20220704442.2.3A
2.2.3A20220715482.2.3A
2.2.3A202207294122.2.3A
2.2.3A202208014162.2.3A
2.2.3A202208154202.2.3A
2.2.3A202208314242.2.3A
2.2.3A202209014282.2.3A
2.2.3A202209154322.2.3A
2.2.3A202209304362.2.3A
2.3D20220704442.3D
2.3D20220715482.3D
2.3D202207294122.3D
2.3D202208014162.3D
2.3D202208154202.3D
2.3D202208314242.3D
2.3D202209014282.3D
2.3D202209154322.3D
2.3D202209304362.3D
3.1.2A20220704113.1.2A
3.1.2A20220715123.1.2A
3.1.2A20220729133.1.2A
3.1.2A20220801143.1.2A
3.1.2A20220815153.1.2A
3.1.2A20220831163.1.2A
3.1.2A20220901173.1.2A
3.1.2A20220915183.1.2A
3.1.2A20220930193.1.2A

 

This is a photo of what I'm looking for that I did quickly in Excel. I'd like to be able to have measures for the Budget YTD and Budget YTD Smoothed. Looking for the ability to filter it by Category as well.

PBI Help 3.PNG

 

Anonymous
Not applicable

Task Table

TaskTask Level 1Task Level 2Task Level 3
1.211.2 
1.3.211.31.3.2
2.1.222.12.1.2
2.2.322.22.2.3
2.322.3 
3.1.233.13.1.2

 

Linearity Table

TaskCategoryLinearityLinearityKey
1.2ALinear1.2A
1.2DNonlinear1.2D
1.3.2BNonlinear1.3.2B
2.1.2CLinear2.1.2C
2.2.3ALinear2.2.3A
2.3DLinear2.3D
3.1.2ANonlinear3.1.2A

 

Nonlinear Budget Table

TaskCategoryFirst Day of MonthDateKeyBudget %
1.2D2022-07-04202207010.25
1.2D2022-08-01202208010.5
1.2D2022-09-01202208010.25
1.3.2B2022-07-04202207010.125
1.3.2B2022-08-01202208010.125
1.3.2B2022-09-01202208010.75
3.1.2A2022-07-04202207010.7
3.1.2A2022-08-01202208010
3.1.2A2022-09-01202208010.3

 

Dates

DateDateKeyDayMonthYear
2022-07-0420220704472022
2022-07-15202207151572022
2022-07-29202207292972022
2022-08-0120220801182022
2022-08-15202208151582022
2022-08-31202208313182022
2022-09-0120220901192022
2022-09-15202209151592022
2022-09-30202209303192022

 

Note: In the Budget Table and Dates table there is usually every work day of the month, I summarized by putting the first work day, the 15th and the last work day. 

 

To not exceed max characters, I'll respond with the Budget Table and what I'm looking for in the next comment(s).

 

 

lbendlin
Super User
Super User

That should be doable - maybe even by combining both budget tables into one.

 

Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Anonymous
Not applicable

I've provided the additional information in the replies. I am pulling the Budget Table data from Analysis Services and the Nonlinear Budget Table from an Excel file.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors