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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.