Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
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
Solved! Go to Solution.
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.
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.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!