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
Anonymous
Not applicable

Budget figures getting double due to multiple years. How to get the budget for each year without sum

Hi Experts,

I have an issue with my report where the requirement is to display the budget values for YTD , and the data has two years 2021 and 2022. And as per YTD it must only show for 2022. But i am getting the values summed as below:

Vaibhav_rathore_0-1659620170016.png

expected result

Vaibhav_rathore_1-1659620369118.png

for example if the value in 2021 is 10000 and in 2022 is 20000 then it must show values for 2022 i.e. 20000. But its getting summarized and giving result 30000.

 

I have drafted formulae but hard coded it:

CurrentYrBudget = CALCULATE(SUM(PolBudget[Enviro New Business Budget]),PolBudget[Year]=2022)
Hard coding is not correct, how this can be done dynamically, please help.
 
Thanks
Vaibhav
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

CurrentYrBudget =
CALCULATE (
    SUM ( PolBudget[Enviro New Business Budget] ),
    PolBudget[Year] = YEAR ( TODAY () )
)

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

CurrentYrBudget =
CALCULATE (
    SUM ( PolBudget[Enviro New Business Budget] ),
    PolBudget[Year] = YEAR ( TODAY () )
)

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.