cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Turf03
Helper II
Helper II

Measure for total sales by sales group

I need to find the sum of total sales by sales group so that I can compare what portion of the total sales each sales rep accounts for.

 

In the example below, I need the calculation for the group sales column but I also need to make sure that it groups by the Sales Group because there are other Sales Groups in the dataset

 

EmployeeSales GroupSalesGroup SalesPortion of sales

Bob

Sporting Goods155030%
JaneSporting Goods155030%
JohnSporting Goods205040%
1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Turf03 

you can try to create two columns

Column = CALCULATE(sum('Table'[Sales]),ALLEXCEPT('Table','Table'[Sales Group]))

Column 2 = 'Table'[Sales]/'Table'[Column]

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@Turf03 

you can try to create two columns

Column = CALCULATE(sum('Table'[Sales]),ALLEXCEPT('Table','Table'[Sales Group]))

Column 2 = 'Table'[Sales]/'Table'[Column]

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu Thats perfect!

 

Got another one for you. 

 

How would I determine the average sales per sales group? I'd like to compare their sales to the average.

@Turf03 

is this what you want?

average = 'Table'[Column]/CALCULATE(COUNTROWS('Table'),ALLEXCEPT('Table','Table'[Sales Group]))

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@ryan_mayu 

 

That will work!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors