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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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