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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.