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
PXJ99
Frequent Visitor

Annual Budget Meaure

Dear all,

 

I have a query please. I need to calculate annual budget and it lies in a month. Example:

Month YTDBudget
Jul500
Aug700
Sep900
Oct1500
Nov1600
Dec1700
Jan1900
Feb2000
Mar2100
Apr2200
May2300
Jun2500

    

The annual budget is the Jun amount i.e. $2500. HOw do I create a measure to give me the annual budget amount? Please help, new to power bi.

 

Thanks a lot

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@PXJ99 

is this what you want

Measure = sumx(FILTER('Table','Table'[Month YTD]="Jun"),'Table'[Budget])

1.PNG





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

Proud to be a Super User!




View solution in original post

is this what you want

Measure = sumx(FILTER(all(Forecast),Forecast[Month ]="Jun"),'Forecast'[Forecast])

when you change the month filter, the output for measure is always 2000

1.PNG





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

Proud to be a Super User!




View solution in original post

8 REPLIES 8
PXJ99
Frequent Visitor

Thanks very much

you are welcome





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@PXJ99 

is this what you want

Measure = sumx(FILTER('Table','Table'[Month YTD]="Jun"),'Table'[Budget])

1.PNG





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

Proud to be a Super User!




Thanks very much Ryan. This looks great.

If the month column was in another table (date table), is there a way to still get the same result?

you are welcome.

i think you need to create the relationship between tables via date column.

it's better to provide the sample data and expected output.





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

Proud to be a Super User!




Here is my pbix file.

 

https://www.dropbox.com/s/rfc6d01hwolyz3y/PB%20File%201.pbix?dl=0

 

Thnks for your help.

PXJ99
Frequent Visitor

I am trying to show the annual budget (which the June YTD amount) in a column clustered chart with the Current Month Budget, Actuals, Committed and Forecast (seperate table) and with the Month (from a 3rd table). The Annual budget should remain unchanged despite the month slicer, others should change based on chosen month. Hope this makes sense. Thanks a lot.

is this what you want

Measure = sumx(FILTER(all(Forecast),Forecast[Month ]="Jun"),'Forecast'[Forecast])

when you change the month filter, the output for measure is always 2000

1.PNG





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

Proud to be a Super User!




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.