cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shaykoooo Regular Visitor
Regular Visitor

Correct Sub-Total and Total

Hi,

I am trying to get the corrct target sales for each sales manager. The target tablw is the one side and the sales table is the fact table.

The numbers in red are incorrect. How do I upload an Excel file to this post?

 

TY!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Correct Sub-Total and Total

Hi @shaykoooo,

 

Here I made one sample to reproduce your issue. Here we can use SUMX to fix the total value. f it doesn't make sense, kindly post your sample data and your formulas here.

 

Measure = SUM(Table1[Column1])/SUM(Table1[Column2])
Measure 2 = SUMX('Table1',[Measure])

 

Capture.PNG

For more details, please check the pbix as attached. I

 

https://www.dropbox.com/s/azlz14rfpwq8jw9/Correct%20Sub-Total%20and%20Total.pbix?dl=0

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
7 REPLIES 7
Super User
Super User

Re: Correct Sub-Total and Total

People usually use the "Attachments" field to upload attachments or post a cloud drive link (One Drive). Or images. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

But, I am thinking that perhaps your issue is: This looks like a measure totals problem. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


shaykoooo Regular Visitor
Regular Visitor

Re: Correct Sub-Total and Total

I don't see the attachment icom, unforunately, your article didn't help me. I wish there was a way to upload the file.

 

Thanks again!

Super User
Super User

Re: Correct Sub-Total and Total

Hmm, you may not get that if you haven't confirmed your email address. People often upload their file to something like One Drive or Box, etc. and then create a share link that anyone can access and then just post that URL. 


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!


shaykoooo Regular Visitor
Regular Visitor

Re: Correct Sub-Total and Total

I found a sort of a workaround by adding a helper column in the database.

 

Community Support Team
Community Support Team

Re: Correct Sub-Total and Total

Hi @shaykoooo,

 

Here I made one sample to reproduce your issue. Here we can use SUMX to fix the total value. f it doesn't make sense, kindly post your sample data and your formulas here.

 

Measure = SUM(Table1[Column1])/SUM(Table1[Column2])
Measure 2 = SUMX('Table1',[Measure])

 

Capture.PNG

For more details, please check the pbix as attached. I

 

https://www.dropbox.com/s/azlz14rfpwq8jw9/Correct%20Sub-Total%20and%20Total.pbix?dl=0

 

Regards,

Frank

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: Correct Sub-Total and Total

Hi @shaykoooo,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shaykoooo Regular Visitor
Regular Visitor

Re: Correct Sub-Total and Total

Hi,
It does, I will try and keep you posted.

TY!