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
mcornejo_1
Helper I
Helper I

Incorrect Aggregations in Budget Matrix

I am trying to create a matrix for our budget that allows us to see a side by side comparison. The first matrix table is a very small example of what the data should look like when grouped correctly. However, the second table matrix is what I end up with.

I am using the following information in my configuration of the Matrix layout, however, I am assuming I am missing some important information in the calculations. Any help would be greatly appreciated.

 

Calculations:

          BudgetRevenue =

                CALCULATE( SUM( CustomerRevBudget[RevenueBudget] ) )

           ActualRevenue = SUM( CustomerActualRevenue[TotalRevenue] )

 

Rows:

         Mode

         Company

         SalesRep

Columns:

         Calendar Quarter

         Calendar Month

Values:

          BudgetRevenue (Measure)

          Actual Revenue (Measure)

 

 

Desired:

  Calendar QuarterQ1     Quarter Subtotals 
  Calendar MonthJan Feb Month Subtotals   
ModeCompanySales RepBudget RevenueActual RevenueBudget RevenueActual RevenueBudget RevenueActual RevenueBudget RevenueActual Revenue
AirCompany ASales Rep 110001500100012002000270020002700
 Company BSales Rep 220002700200040004000670040006700
 Company CSales Rep 3 3000300018003000480030004800
ExpediteCompany ASales Rep 120003000200024004000540040005400
 Company BSales Rep 24000540040008000800013400800013400
 Company CSales Rep 3 6000600036006000960060009600
TOTALS  900021600180002100027000426002700042600

 

Actual:

  Calendar QuarterQ1     Quarter Subtotals 
  Calendar MonthJan Feb Month Subtotals   
ModeCompanySales RepBudget RevenueActual RevenueBudget RevenueActual RevenueBudget RevenueActual RevenueBudget RevenueActual Revenue
AirCompany ASales Rep 120001500200012004000270040002700
  Sales Rep 22000 2000     
  Sales Rep 32000 2000     
 Company BSales Rep 14000 4000     
  Sales Rep 240002700400040008000670080006700
  Sales Rep 34000 4000     
 Company CSales Rep 13000 3000     
  Sales Rep 23000 3000     
  Sales Rep 330003000300018006000480060004800
ExpediteCompany ASales Rep 140003000400024008000540080005400
  Sales Rep 24000 4000     
  Sales Rep 34000 4000     
 Company BSales Rep 18000 8000     
  Sales Rep 2800054008000800016000134001600013400
  Sales Rep 38000 8000     
 Company CSales Rep 16000 6000     
  Sales Rep 26000 6000     
  Sales Rep 36000600060003600120009600120009600
TOTALS  8100021600690002100054000426005400042600
2 REPLIES 2
mcornejo_1
Helper I
Helper I

Actual Revenue Data Table:

ModeCompanySalesRepActual RevenueMonth
AirCompany ASales Rep 1750Jan
AirCompany ASales Rep 1750Jan
ExpediteCompany ASales Rep 11500Jan
ExpediteCompany ASales Rep 11500Jan
AirCompany ASales Rep 1600Feb
AirCompany ASales Rep 1600Feb
ExpediteCompany ASales Rep 11200Feb
ExpediteCompany ASales Rep 11200Feb
AirCompany BSales Rep 21350Jan
AirCompany BSales Rep 21350Jan
ExpediteCompany BSales Rep 22700Jan
ExpediteCompany BSales Rep 22700Jan
AirCompany BSales Rep 22000Feb
AirCompany BSales Rep 22000Feb
ExpediteCompany BSales Rep 24000Feb
ExpediteCompany BSales Rep 24000Feb
AirCompany CSales Rep 31500Jan
AirCompany CSales Rep 31500Jan
ExpediteCompany CSales Rep 33000Jan
ExpediteCompany CSales Rep 33000Jan
AirCompany CSales Rep 3900Feb
AirCompany CSales Rep 3900Feb
ExpediteCompany CSales Rep 31800Feb
ExpediteCompany CSales Rep 31800Feb

 

Revenue Budget Table:

ModeCompanyBudget RevenueMonth
AirCompany A1000Jan
ExpediteCompany A2000Jan
AirCompany A1000Feb
ExpediteCompany A2000Feb
AirCompany B2000Jan
ExpediteCompany B4000Jan
AirCompany B2000Feb
ExpediteCompany B4000Feb
AirCompany C Jan
ExpediteCompany C Jan
AirCompany C3000Feb
ExpediteCompany C6000Feb
Anonymous
Not applicable

... and so, you certainly think that somebody will tell you what's wrong without having any idea whatsoever about what your model looks like? 🙂 Well, miracles do happen sometimes but a reasonable person should never count on one.

 

Best

Darek

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.

Top Solution Authors