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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
punksterz626
Helper II
Helper II

What is a simple way to add a budget amount

Hello Gurus,

 

What is a simple way to add a budget to your calculation? 

 

Scenario,

I have a budget, lets just say 20million, and I want calculate Actuals to Budget. Throughout the year, there will be new projects added and completed but the Budget will also remain at 20 million. I want to show the remaining budget as we go. What is the best way to add the budget amount for these calculations? Is there a measure I can set for the budget amount? I think that would be the easiest way.

1 ACCEPTED SOLUTION
v-yifanw-msft
Community Support
Community Support

Hi @punksterz626 ,
Thank you @Dangar332  for your prompt reply, I have created a data example for you to help you with your problem. You can follow the steps below:
Data Example:

vyifanwmsft_0-1710816501537.png
1. Add a DateTable and create a relationship with the FactTable.

DateTable = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 10, 1 ), DATE ( 2024, 4, 1 ) ),
    "year", YEAR ( [Date] )
)

vyifanwmsft_1-1710816585532.png


2. Add a measure and put it into the card.

RemainingBudget = 
VAR BudgetAmount = 20000000
RETURN
BudgetAmount - SUM('FactTable'[Amount])

 

Fianl output:

vyifanwmsft_3-1710816706627.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
v-yifanw-msft
Community Support
Community Support

Hi @punksterz626 ,
Thank you @Dangar332  for your prompt reply, I have created a data example for you to help you with your problem. You can follow the steps below:
Data Example:

vyifanwmsft_0-1710816501537.png
1. Add a DateTable and create a relationship with the FactTable.

DateTable = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 10, 1 ), DATE ( 2024, 4, 1 ) ),
    "year", YEAR ( [Date] )
)

vyifanwmsft_1-1710816585532.png


2. Add a measure and put it into the card.

RemainingBudget = 
VAR BudgetAmount = 20000000
RETURN
BudgetAmount - SUM('FactTable'[Amount])

 

Fianl output:

vyifanwmsft_3-1710816706627.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

@v-yifanw-msft I'll look into the provided solution and report back. Thank you for your assistance.

Dangar332
Super User
Super User

hi, @punksterz626 

please provide some data or elaborate your requirnment

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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