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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

help with DIVIDE measure

Hi all,

 

How can I divide the total sum of costs from a fact table, on each product Id from a dimension table?

 

The products will have different sum of costs, and I want to divide that value on a total sum of costs from the fact table.  

 

Thank you

 

 

 

 

 

 

1 ACCEPTED SOLUTION
rajulshah
Resident Rockstar
Resident Rockstar

Hello @Anonymous ,

 

You can create a measure for the Total Sales as below:

Total Sales = CALCULATE(SUM([Sales[Sales]),ALL(Product_Dim_table[Product]))

Sales by Product = SUM([Sales[Sales]) 

 

and then use create a measure for division:
DIVIDE([Sales by Product],[Total Sales])

 

Hope this helps.

View solution in original post

1 REPLY 1
rajulshah
Resident Rockstar
Resident Rockstar

Hello @Anonymous ,

 

You can create a measure for the Total Sales as below:

Total Sales = CALCULATE(SUM([Sales[Sales]),ALL(Product_Dim_table[Product]))

Sales by Product = SUM([Sales[Sales]) 

 

and then use create a measure for division:
DIVIDE([Sales by Product],[Total Sales])

 

Hope this helps.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors