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
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
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.