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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
hadjigeo
Helper I
Helper I

TOTAL ROWS IS WRONG

My total on the visual is wrong. How can i fix this?

 

below is the formula that am using:

Sales 80% = IF([Target Sales Achieve 80%]> SUM('Sales Main JO'[Actual Sales]),[Target Sales Achieve 80%]- SUM('Sales Main JO'[Actual Sales]),0)
 
Target Sales Achieve 80% = SUM('Sales Main JO'[Target Sales])*0.8
 
 

 

Untitled.png

 

5 REPLIES 5
PaulDBrown
Community Champion
Community Champion

@hadjigeo 

Try:

Sum 80% Sales = SUMX(SUMMARIZE(Table[Plan Brand], column[Plan Brand], "Sum 80% Sales", [Sales 80%]), [Sum 80% Sales])

 Use the correct "Table" and "column" names, obviously





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi @PaulDBrown 

I did the formula as you stated:

Sum 80% sales = SUMX(SUMMARIZE('PM Main JO','PM Main JO'[Plan-Brand],"Sum 80% sales",[Sales 80%]),[Sum 80% sales])
 
but i get the below:
in some rows the result is 0
Untitled.png
Anonymous
Not applicable

HI @hadjigeo ,

According to your snapshot, it seems like a common measure total issue, you can refer to the below blog to know how to deal with this.

Measure Totals, The Final Word Measure Totals, The Final Word  

In addition, if you still confused about coding formula, can you please share some sample data for further tests?

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

jhartranft60
Advocate IV
Advocate IV

@hadjigeo 

 

Please see this question as I believe it's solution will be similar to your needs:  https://community.powerbi.com/t5/Desktop/Sum-of-values-in-a-measure-with-divide-measure/m-p/296768#M...

HI @jhartranft60 ,

 

I am not sure if i understood how to do it.

i tried that one but was giving me a wrong data.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors