Forum Discussion

AAMW01's avatar
AAMW01
Helper I
5 years ago
Solved

Adding Budget Data from excel spreadsheet & displaying it with actual data from database tables

I have a spreadsheet with a list of manual entry budget data which needs to be used by multiple tables from a database. I have a calendar table which links to each database table and the calendar als...
  • AAMW01's avatar
    AAMW01
    5 years ago

    Thank you for your detailed solution. 

     

    I managed to display the budget data as a DAX function in the sales table:

    Sales output forecast = CALCULATE(
    SUM('Budgets'[Value]),
    FILTER('Budgets',
    'Budgets'[GroupType] = MAX('Sales'[Name])
    )
    )
    Not really sure why I needed to use MAX and why I couldn't just use 'Budgets'[GroupType] = 'Sales'[Name]. 
     
    EDIT: see reply from v-kkf-msft who explains why.


    Either way this displays the correct data from the budgets table relating to the group type and date.
     
    I then use date filters to view by certain dates.