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

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

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 others find it more quickly.

View solution in original post

7 REPLIES 7
Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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!

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. 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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

 

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 others find it more quickly.

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 others find it more quickly.

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

TY!

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.