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
Anonymous
Not applicable

Show Total Sum as opposed to each product sales on each line in calculation

Hi Experts

 

I am trying to show the total sum on each line and then divide the total by the indivudal product sales. see sample data

Capture.PNG

 

 

 

 

 

1. I want to show in my tooltip total sales as 100 and then in the measure preform the calcultion which would be each individual product sales / total sales.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Measure =
VAR Individual = SUM(Test[Sales])
VAR Total= CALCULATE(SUM(Test[2017 Sales]),ALL(Test[Category]))
RETURN DIVIDE(Individual,Total,0)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Measure =
VAR Individual = SUM(Test[Sales])
VAR Total= CALCULATE(SUM(Test[2017 Sales]),ALL(Test[Category]))
RETURN DIVIDE(Individual,Total,0)
Anonymous
Not applicable

many thanks Vimal

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.