Skip to main content
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.

Frequent Visitor

Measure - Total Sales for Americas - calculate sales by Region by %

I am new to DAX and would like to get help on the following:


I would like to create a table with the following that will result in the following table:


Total Product sales for Product A is the sum of East, West and US-Other. While for Product B, total sales for United States is split by percentage between East and West and nil for "US-Other". How do I create the measure accordingly? Thank you for your help.

OrganizationProduct AProduct  BTotal
United States200300500
East125195 (65% of 300 United States)320
West50105 (35% of 300 United States)155
Community Support
Community Support


It is unlikely to give you the exact dax with just expected output, can you also provide a sample data of your model?




 The OPEX for "Trading" is cut off here but essentially we want the 84.47 for January and other $ for the following months split between East (0.65) and West (0.35) but we can't get past this error. 

Super User
Super User

@blindsp0tkc2020 , You can create a table like this

summarize(crossjoin(location, product),[Location],[Product],"Sales" ,switch( True() , [product]="A" [Location] = "East" && sum([total sales])*.65))


Add all the conditions to Switch

Helpful resources

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


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.

Top Solution Authors