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

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

Reply
joshua1990
Post Prodigy
Post Prodigy

SUMX wrong Subtotal

Hi all!

I have a simple calculation of #Orders * Price. This data is displayed on a matrix visual with all articles. We receive a Subtotal for each department but it seems to be wrong.

I tried this formula but on Article level it works and for totals not.

Revenue = 
VAR _NumO = COUNTROWS('Orders')
VAR _Price = [Price]
RETURN
SUMX(VALUES('Master'[Article]), _NumO * _Price)

 

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

Revenue = 

SUMX(VALUES('Master'[Article]), CALCULATE(COUNTROWS('Orders')) * [Price])

View solution in original post

1 REPLY 1
wdx223_Daniel
Super User
Super User

Revenue = 

SUMX(VALUES('Master'[Article]), CALCULATE(COUNTROWS('Orders')) * [Price])

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.