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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to sum from specific criteria

Hi, 

 

I'm new to this power BI and need your help

 

So I have this data

ProductRevenue
A1000
B4000
C5000
D3000
Subtotal 113000
B500
C400
F1200
G3000
H3000
Subtotal 28100
Total21100

 

How can I get the sum of revenue but only from the data above subtotal 1? because I have also the same product above subtotal 1 and below subtotal 1 like B & C.

 

Thank you

1 REPLY 1
lbendlin
Super User
Super User

You need to add (as a minimum) another column to your data that identifies the subgroup.  As it is your data is not usable in Power BI (Power BI does not guarantee sort order!).  Or maybe add an index column.

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.