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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Chrisjm15
Regular Visitor

Calculating mix with multiple criteria

I have a table in Power Bi Desktop.

 

The table has 4 columns:

  1. Month
  2. Channel
  3. Category
  4. Units

I'm trying to create a dynamic calculation to find what mix is of units of Category by Channel by month.

Essentially, each month and each channel, the Category mix should total 100%.

Then the category underneath would be say 30% of the total channel.

 

How do i do that?

Additional notes - I've created a "Calculations folder" as I like to keep the Power Bis neat, which I think complicates the formula?

 

Thanks

Chris

 

1 ACCEPTED SOLUTION
rubayatyasmin
Super User
Super User

Hi, @Chrisjm15 

 

Create 2 calculated column. One for total unit another for mix. Sample DAX,

Total Units = CALCULATE(SUM('YourTableName'[Units]), ALLEXCEPT('YourTableName', 'YourTableName'[Month], 'YourTableName'[Channel]))

 

2nd calculated column

 

Category Mix = 'YourTableName'[Units] / 'YourTableName'[Total Units]

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


View solution in original post

1 REPLY 1
rubayatyasmin
Super User
Super User

Hi, @Chrisjm15 

 

Create 2 calculated column. One for total unit another for mix. Sample DAX,

Total Units = CALCULATE(SUM('YourTableName'[Units]), ALLEXCEPT('YourTableName', 'YourTableName'[Month], 'YourTableName'[Channel]))

 

2nd calculated column

 

Category Mix = 'YourTableName'[Units] / 'YourTableName'[Total Units]

 

rubayatyasmin_0-1689517080227.png


Did I answer your question? Mark my post as a solution!super-user-logo

Proud to be a Super User!


Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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