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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
souvik900766
Helper IV
Helper IV

Subtotal issue using summarize and sumx

Hi,
My measure using sumx and summarize showing values at market level 0.
I wanted to add all the market numbers to get the OU total ,the markets are coming zero and OUs also
My OU and Market come from same table.

My expected result is :- Correct total at OU level in Measure " Ind Mix Imact on shares PY ". I tries with the correct total one but it showing wrong numbers and ZEROS in market level.

 

Here is the link to the file :- https://www.dropbox.com/s/7oq1viv0f7of033/Total%20error.pbix?dl=0

Any help will be appreciated.
Thanks in advance.
Total error.png

10 REPLIES 10
wdx223_Daniel
Super User
Super User

Ind Mix Imact on shares PY = SUMX(VALUES(GTC[Market]),[Industry Mix Change Vs PY]*[Share within Ind Market PY])

Hi @wdx223_Daniel ,

Unfortunately, its not working.

wdx223_Daniel_0-1640162630809.png

 

Hi @wdx223_Daniel 
All the numebers at market level is coming 00 !

VahidDM
Super User
Super User

Hi @souvik900766 

SUMX(<table>, <expression>)

 

Change the expression part of your formula to [_1] then check the result.


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

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables

Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/

 

Hi @VahidDM ,
Here is the file,
Kindly help, urgently needed.
https://www.dropbox.com/s/7oq1viv0f7of033/Total%20error.pbix?dl=0

smpa01
Super User
Super User

@souvik900766  the rule of thumb is not to use any aggregation inside SUMMARIZE as it is really complex.

https://www.sqlbi.com/articles/all-the-secrets-of-summarize/

 

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

@smpa01 any way, what to use instead

@souvik900766  provide sample data, expected output

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Hi @smpa01 
Here is the file,

Kindly help, urgently needed.
https://www.dropbox.com/s/7oq1viv0f7of033/Total%20error.pbix?dl=0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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