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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.