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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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


Follow on LinkedIn
@ 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. 


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.