Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Roundup Measure not summing correctly across matrix rows and columns

I need help. 

 

I am trying to use a measure with roundup for multiple territories over the course of different months. The values within the matrix are calculating correctly, but I can't get the row totals and column totals to total the correct amounts. I have looked through multiple posts and when I fix one issue it breaks another. 

 

Here is the measure I used to calculate the monthly quota by territory based on the previous 6 months of data. I am not sure if this is where the problem lies if I need to add logic to calculate at the territory level here.

 

Quota =
     Roundup(CALCULATE('MT Quota'[Baseline],all(Quota[Order Date]),
DATESBETWEEN('Calendar'[DATE],[QuotaStartDate],[QuotaEndDate]))/6,0)
 
Here is the measure I used to try and fix the row and column totals (unsuccessfully). 
Test =
     VAR _Test =
          SUMMARIZE(Quota,Quota[Sales Territory],"_value",[Quota])
          Return
               if(HASONEVALUE(Quota[Sales Territory]),
               [Quota],
               SUMX(_Test,[_value])
               )
 
PBIX and sample file located here:
 
Any help is appreciated! 
1 ACCEPTED SOLUTION

@Anonymous 
Please refer to attached sample file with the solution

1.png

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @Anonymous 

There in no PBIX file in the link

Anonymous
Not applicable

@Anonymous 
Please refer to attached sample file with the solution

1.png

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.