Forum Discussion
Looking up values from a 2-dimensional table
- 8 years ago
My first thought is that you need to pivot the Team Quotas table. So that you have three columns (Teams, Quarter and Quota).
Then create a summary table of the sales that sums the amount.
Teams Summary = SUMMARIZECOLUMNS('Sales'[Team],'Sales'[Quarter],Sales,"Total Sales",sum(Sales[Amount]))I then used a lookupvalue() function to find the matching budget for a Team/Quarter and create a column on the new summary table
Budget = lookupvalue('Team Quotas'[Quota],'Team Quotas'[Team],[Team],'Team Quotas'[Quarter],[Quarter])I can then create a new column for the budget percentage,
Budget Percent = [Total Sales]/[Budget]
I'm sure you could combine some of these steps, but I think this makes it clearer what's going on.
My first thought is that you need to pivot the Team Quotas table. So that you have three columns (Teams, Quarter and Quota).
Then create a summary table of the sales that sums the amount.
Teams Summary = SUMMARIZECOLUMNS('Sales'[Team],'Sales'[Quarter],Sales,"Total Sales",sum(Sales[Amount]))I then used a lookupvalue() function to find the matching budget for a Team/Quarter and create a column on the new summary table
Budget = lookupvalue('Team Quotas'[Quota],'Team Quotas'[Team],[Team],'Team Quotas'[Quarter],[Quarter])I can then create a new column for the budget percentage,
Budget Percent = [Total Sales]/[Budget]
I'm sure you could combine some of these steps, but I think this makes it clearer what's going on.
- JoshEnglish8 years ago
Helper I
Thanks. That was the solution.