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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Incorrect Total for one Column

Hi all, I have been trying to create a table but the total for the measure on my table is wrong. Sales 1 comes directly from data while I created a measure for Sales 2. I believe that is the reason why the total is wrong but I cannot seem to find a way to solve it. The table and my DAX code for measure is down below. If someone can show me how to fix the total I would appreciate it. Thanks in advance!

borabora_0-1655322499243.png

Sales 2 =
Var LastYear=MAX('Sales'[Year])
Return

CALCULATE(SUMX('Sales', 'Sales'[Sales]),'Sales'[Year]=LastYear)

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.