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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
delson
Regular Visitor

Category % of sales

Hi All,

I need to be able to add a % of sales function.

My data is product line by line with sales amount associcated with that on the line. 

This data also has a category i.e Stationary, Catering etc.

e.g. 

 

Line - Code - Desc - Category - Sales

Line 1: 1324 - Coffee Beans - Catering - £250

Line 2: 1234 - Coffee Cups - Catering - £124

Line 3: 7413 - Pens - Stationery - £103

 

 

I need to be able to group these by % of sales e.g Total Sales = £1000.00,  £350 of these sales are Catering = 35% of total sales.

Any ideas on the best way to do this?

 

Thanks in advanced - 

2 REPLIES 2
Greg_Deckler
Super User
Super User

Not entirely certain what you want but perhaps my Dynamic ABC Classification measure would work. https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-ABC-Classification/m-p/479146


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi

 

Thanks for your reply. My explanation probably wasnt the best 😞

 

So, i have a list of products with the amount purchased and the sales amount and these products are classified into 3 groups, GOP, PAP & EOS. I basically want to see the % of sales of each so Total sales is £1000 of which 30% (based on the sales) was GOP etc.

In excel i would do a =IFERROR(SUM(SUMIF(category,"Gop",sales)/sales),0) and then set this as a % whoch would give me the % of sales matching GOP vs the Total Sales.

Hope this makes better sense?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.