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

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

Reply
achrafkasmi
Helper I
Helper I

calculate the SUM of a mesure

Hello,

 

i have a table named "V_QTSDAMA" and I have a column named "ItemName"  with a repeating products with its own stock.

 

I need to calculate the sum of " BESOIN PF " for each product. ( to not to have the products repeating themselves)

 

PS : note that the column "BESOIN PF" it's calculated as a Mesure.

 

- i work on a directquery Mode.

 

achrafkasmi_0-1675342776607.png

 

For exemple this is result that I want  , i made it on excel : 

 
 

Capture d’écran 2023-02-02 150534.png

 

Thanks, 

 

ACHRAF KASMI

 

 

 
2 REPLIES 2
amitchandak
Super User
Super User

@achrafkasmi , Try measure like

 

Sumx(Summarize(Table, Table[Besoin Pf], Table[Stock MP], Table[Besoin en Rpm]), [Stock MP] -[Besoin en Rpm])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

hank you for your answer, 

 

the formulate doesn’t work, she didn’t return the sum, she just returned I think the minimum and not the sum.

but with this formulate i'm able to shave the ItemName.

 

achrafkasmi_0-1675682798226.png

 

 

thanks,

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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