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
sniper007
Regular Visitor

how to calculate sum, average price and the number of orders

Hello guys im working with formulas in order to calculate some measures , so here we go i have two columns "somme_quantité"(orders) and "famille de groupe"(family article) , i want from family article to create new columns (3 new columns)r in order to calculate  sum, average price and the number of orders  ...

NB : each family article contains different items ,

here's some screenshoots :

orders :

cab1.JPG

 

article family :

cab2.JPG

so here is a group of article family like SERVICE , MARBLE LOCALE and others each one contains items

cab3.JPGcab66.JPG

 

thank you

2 REPLIES 2
Anonymous
Not applicable

Hi @sniper007 ,

Could you please share some sample data in the table(exclude sensitive data) and your expected result with specific example and calculation logic in order to provide you a suitable solution? It is better if you can share your sample pbix file. Thank you. By the way, does these fields(price,"somme_quantité"(orders) and "famille de groupe"(family article) ) come from one same table? 

In addition, you can refer the content in the following links to get it:

Create and use your own measures

Power BI Aggregate Functions

Best Regards

amitchandak
Super User
Super User

@sniper007 ,

I think pivot in the power query can create that easily for you if that can be used for this case

 

https://radacad.com/pivot-and-unpivot-with-power-bi

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

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!

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.

Top Solution Authors
Top Kudoed Authors