Forum Discussion

mlsx4's avatar
mlsx4
Memorable Member
2 years ago

Calculate Table for budgets

Hello everyone,

 

I have my annual budgets in different excels (one per year). Then I want to compare real vs budgeted. But, I here have a problem which is that if I select two years at the same time, this formula won't work:

Monthly budget =
VAR seletectedYear = SELECTEDVALUE ( Calendar[Year] )

VAR FilteredTable =
    CALCULATETABLE (
        Budgets,
        Budget[Year] = seletectedYear )

VAR Result = SUMX ( FilteredTable, Budgets[MonthlyQuantity] )

RETURN Result

 Is there any way to modify it, to work as expected? Thank you in advance

 

 

P.S. For me, it doesn't make sense to group two years but my bosses need it for some reason.

1 Reply